Documentation ¶
Index ¶
- Constants
- func AppendHTTPDate(dst []byte, date time.Time) []byte
- func AppendQuotedArg(dst, src []byte) []byte
- func AppendQuotedPath(dst, src []byte) []byte
- func AppendUint(dst []byte, n int) []byte
- func B2s(b []byte) string
- func LowercaseBytes(b []byte)
- func ParseHTTPDate(date []byte) (time.Time, error)
- func ParseUint(buf []byte) (int, error)
- func ParseUintBuf(b []byte) (int, int, error)
- func ReadHexInt(r network.Reader) (int, error)
- func S2b(s string) (b []byte)
- func WriteHexInt(w network.Writer, n int) error
Constants ¶
View Source
const ( Hex2intTable = "" /* 1002-byte string literal not displayed */ ToLowerTable = "" /* 729-byte string literal not displayed */ ToUpperTable = "" /* 729-byte string literal not displayed */ QuotedArgShouldEscapeTable = "" /* 1024-byte string literal not displayed */ QuotedPathShouldEscapeTable = "" /* 1024-byte string literal not displayed */ ValidCookieValueTable = "" /* 1024-byte string literal not displayed */ ValidHeaderFieldValueTable = "" /* 1024-byte string literal not displayed */ NewlineToSpaceTable = "" /* 727-byte string literal not displayed */ ValidHeaderFieldNameTable = "" /* 1024-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func AppendHTTPDate ¶
AppendHTTPDate appends HTTP-compliant representation of date to dst and returns the extended dst.
func AppendQuotedArg ¶
AppendQuotedArg appends url-encoded src to dst and returns appended dst.
func AppendQuotedPath ¶
func AppendUint ¶
AppendUint appends n to dst and returns the extended dst.
func B2s ¶
B2s converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ .
Note it may break if string and/or slice header will change in the future go versions.
func LowercaseBytes ¶
func LowercaseBytes(b []byte)
func ParseHTTPDate ¶
ParseHTTPDate parses HTTP-compliant (RFC1123) date.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.