package
0.0.0-20201210133501-58bf0a829f21
Repository: https://github.com/soongo/soon.git
Documentation: pkg.go.dev

# Functions

AddHeader adds the specified value to the HTTP response header field.
AddPrefixSlash adds a slash to the start of given string.
AppendToVaryHeader appends fields to the vary field of header.
BytesToString converts byte slice to string without a memory allocation.
Dirname returns the directory name of executable file that started the current process.
EncodeURI encodes a text string as a valid Uniform Resource Identifier (URI).
EncodeURIComponent encodes a text string as a valid component of a Uniform Resource Identifier (URI).
FileExists returns true if specified absolute file path exists.
Format object to media type.
Fresh checks freshness of the response using request and response headers.
GetHeaderValues returns the header values of specified key.
H is an alias function for `textproto.CanonicalMIMEHeaderKey`.
HasBody checks if a request has a request body.
IsFileExist checks if a file is exist.
LookupCharset lookups the charset of MIME Type.
LookupMimeType lookups the MIME Type of a suffix string.
No description provided by the author
No description provided by the author
NormalizeType normalizes the given `type`, for example "html" becomes "text/html".
ParseHeader parses header with type string into a slice.
Parse media type to object.
RangeParser parses "Range" header `str` relative to the given file `size`.
No description provided by the author
RouteJoin joins all given routes.
SetContentType sets the Content-Type HTTP header to the MIME type as determined by LookupMimeType() for the specified type.
SetHeader sets the response’s HTTP header field to value.
StringToBytes converts string to byte slice without a memory allocation.
Test media type.
No description provided by the author
Vary marks that a request is varied on a header field.

# Variables

No description provided by the author

# Structs

AcceptParams is an object with `.value`, `.quality` and `.params`.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

StringSlice attaches the methods of Interface to []string.