Documentation
¶
Overview ¶
Package http provides HTTP-related providers for Zero.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultErrorEncoder ¶
func DefaultErrorEncoder() zero.ErrorEncoder
DefaultErrorEncoder for otherwise unhandled errors. It can be overridden.
The response will be JSON in the form:
{
"error": "error message",
"code": code
}
func DefaultResponseEncoder ¶
func DefaultResponseEncoder() zero.ResponseEncoder
DefaultResponseEncoder encodes responses using the default Zero format. It can be overridden.
func DefaultServeMux ¶
DefaultServeMux returns the default http.ServeMux. It can be overridden.
Types ¶
Click to show internal directories.
Click to hide internal directories.