Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalFromFile ¶
Unmarshals the given type from the given JSON file.
func WrapHandler ¶
func WrapHandler[RequestT any, ResponseT any]( handler func( req *http.Request, requestBody RequestT, ) ( httpStatus int, responseBody optionals.Optional[ResponseT], err error, ), ) caddyhttp.Handler
Wraps the given handler function with a layer that handles the marshalling and unmarshalling of request/response modies.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.