Documentation ¶
Index ¶
Constants ¶
View Source
const XHttpCode = "x-http-code"
XHttpCode is used for overriding the standard HTTP code
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPErrorHandler ¶
func CustomHTTPErrorHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, err *errors.EncodedError)
CustomHTTPErrorHandler provides handling of custom error object It is very similar to runtime.DefaultHTTPErrorHandler except it takes in the EncodedError object
func HTTPResponseModifier ¶
HTTPResponseModifier is a helper function to override the HTTP status code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.