httperrors

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorWithReqInfo

func ErrorWithReqInfo(w http.ResponseWriter, r *http.Request, code int, err error)

ErrorWithReqInfo writes an xhttp.ErrorResponse with an added request id ( RqId) field read from the request context.

NB: RqID is currently a query specific concept, which is why this doesn't exist in xhttp proper. We can add it later if we propagate the request id concept to that package as well.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL