// Date parses and returns the value of the Date header.
Date parses and returns the value of the Date header.
// Date parses and returns the value of the Date header .
func Date(respHeaders http.Header) (date time.Time, err error) {
	dateHeader := respHeaders.Get("date")
	if dateHeader == "" {
		err = ErrNoDateHeader
		return
	}
	return time.Parse(time.RFC1123, dateHeader)
}
func Date ( respHeaders http . Header ) ( date time . Time , err error ) { dateHeader := respHeaders . Get ( " " ) if dateHeader == " " { err = ErrNoDateHeader return } return time . Parse ( time . RFC1123 , dateHeader ) }
Date parses and returns the value of the Date header.
Date parses and returns the value of the Date header .