package
0.0.4
Repository: https://github.com/korylprince/httputil.git
Documentation: pkg.go.dev

# Functions

GetSession returns the Session for the given request.
LogActionID sets the ActionID for the given request.
New returns a new APIRouter.
ParseJSONBody decodes the http.Request body into one or more values.
WithTX returns a ReturnHandlerFunc for the given database and TXReturnHandlerFunc.

# Variables

NotFoundJSONHandler returns a JSON HTTP 404 Not Found response.

# Structs

APIRouter is an API Router.

# Type aliases

AuthHookFunc is used to further check authorization of a Session and return extra attributes.
ReturnHandlerFunc returns an HTTP status code and body for the given request.
TXReturnHandlerFunc returns an HTTP status code and body for the given request and database handle.