Documentation
¶
Overview ¶
Package http/semantics implements (parts of) RFC 9110 HTTP Semantics (https://httpwg.org/specs/rfc9111.html).
Index ¶
Constants ¶
View Source
const (
// preferred format
IMFFixDateformat = "Mon, 02 Jan 2006 15:04:05 GMT"
)
Variables ¶
This section is empty.
Functions ¶
func HTTPDate ¶
HTTPDate parses date as an HTTP-Date and returns a time. The format of the HTTP-Date is specified in RFC 9110 HTTP Semantics Section 5.6.7 Date/Time Format (see https://httpwg.org/specs/rfc9110.html#rfc.section.5.6.7). The caseSensitive flag is needed to fully implement HTTP-Date parsing for RFC 9111 HTTP Caching (see https://httpwg.org/specs/rfc9111.html#rfc.section.4.2) which mandates that HTTP caching servers should parse dates case-insensitive.
Types ¶
This section is empty.
Source Files
¶
- semantics.go
Click to show internal directories.
Click to hide internal directories.