Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultContentType = "text/csv"
DefaultContentType is the output content type if no other is found on the request
Variables ¶
This section is empty.
Functions ¶
func ExtractContentType ¶
ExtractContentType gets the client's preferred response type from the request. Treats the order of content types in the header as the preference (i.e. it ignores preferences defined as "q" values).
func ExtractLang ¶
ExtractLang pulls the best possible language out of a request.
Types ¶
type StringHandler ¶
type StringHandler struct {
ST *loader.StringTable
}
StringHandler handles a request for an individual string.
func (StringHandler) ServeHTTP ¶
func (h StringHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type StringsHandler ¶
type StringsHandler struct {
ST *loader.StringTable
}
StringsHandler handles a request for a full string catalog by language.
func (StringsHandler) ServeHTTP ¶
func (h StringsHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.