Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(rs io.RuneScanner) (name string, version string, err error)
Parse parses an HTTP-product, as defined by IETF RFC-2616, and return the HTTP-product 'name' and HTTP-product 'version'.
For example, this:
"HTTP/1.1"
Would result in an HTTP-product name of:
"HTTP"
And (would result in) an HTTP-product version of:
"1.1"
From the IETF RFC-2616:
product = token ["/" product-version]
product-version = token
token = 1*<any CHAR except CTLs or separators>
separators = "(" | ")" | "<" | ">" | "@"
| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.