Documentation ¶
Directories ¶
Path | Synopsis |
---|---|
Package contenttype contains functions to extract content type information from request headers as well as set correct headers on the response depending on the Accept and Content-Type request headers.
|
Package contenttype contains functions to extract content type information from request headers as well as set correct headers on the response depending on the Accept and Content-Type request headers. |
Package decodejson has helper functions to decode HTTP bodies encoded in JSON.
|
Package decodejson has helper functions to decode HTTP bodies encoded in JSON. |
Package httperr implements convenience functions to respond with an error to an http client.
|
Package httperr implements convenience functions to respond with an error to an http client. |
middlewares
|
|
cors
Package cors has a middleware and functions to parse and set CORS correctly.
|
Package cors has a middleware and functions to parse and set CORS correctly. |
metrics
Package metrics implements a metrics middleware for an HTTP server that records metrics data for Prometheus.
|
Package metrics implements a metrics middleware for an HTTP server that records metrics data for Prometheus. |
routes
|
|
build
Package build is the HTTP handler for the build information.
|
Package build is the HTTP handler for the build information. |
users
Package users is the HTTP handler for the users.
|
Package users is the HTTP handler for the users. |
Click to show internal directories.
Click to hide internal directories.