MCPcopy
hub / github.com/valyala/fasthttp / AppendHTTPDate

Function AppendHTTPDate

bytesconv.go:115–119  ·  view source on GitHub ↗

AppendHTTPDate appends HTTP-compliant (RFC1123) representation of date to dst and returns the extended dst.

(dst []byte, date time.Time)

Source from the content-addressed store, hash-verified

113// AppendHTTPDate appends HTTP-compliant (RFC1123) representation of date
114// to dst and returns the extended dst.
115func AppendHTTPDate(dst []byte, date time.Time) []byte {
116 dst = date.In(time.UTC).AppendFormat(dst, time.RFC1123)
117 copy(dst[len(dst)-3:], strGMT)
118 return dst
119}
120
121// ParseHTTPDate parses HTTP-compliant (RFC1123) date.
122func ParseHTTPDate(date []byte) (time.Time, error) {

Callers 10

SetLastModifiedMethod · 0.85
refreshServerDateFunction · 0.85
TestAppendHTTPDateFunction · 0.85
createDirIndexMethod · 0.85
newFSFileMethod · 0.85
AppendBytesMethod · 0.85

Calls

no outgoing calls

Tested by 4

TestAppendHTTPDateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…