Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPDecoderOption ¶
type HTTPDecoderOption func(*httpDecoderOptions)
HTTPDecoderOption configures the HTTP decoder.
func HTTPFormDecoder ¶
func HTTPFormDecoder() HTTPDecoderOption
HTTPFormDecoder configures the HTTP decoder to only accept form-data (application/x-www-form-urlencoded, multipart/form-data)
func HTTPJSONDecoder ¶
func HTTPJSONDecoder() HTTPDecoderOption
HTTPJSONDecoder configures the HTTP decoder to only accept form-data (application/json)
func HTTPJSONSchema ¶
func HTTPJSONSchema(jl gojsonschema.JSONLoader) HTTPDecoderOption
HTTPJSONSchema sets a JSON schema to be used for validation and type assertion of incoming requests.
Click to show internal directories.
Click to hide internal directories.