Documentation ¶
Index ¶
Constants ¶
View Source
const (
RequestHeaderKey contextKey = 1 + iota
)
Variables ¶
This section is empty.
Functions ¶
func SetRequestHeadersFromContext ¶
func SetRequestHeadersFromContext(httpContext HttpContext, header http.Header) error
SetRequestHeadersFromContext iterates over headers in context and add adds all values to the request headers map
Types ¶
type HttpContext ¶
HttpContext is a context bucket for http related objects like headers
func NewHttpContextWrapper ¶
func NewHttpContextWrapper(ctx context.Context) HttpContext
NewHttpContextWrapper creates a wrapper for a context object
Click to show internal directories.
Click to hide internal directories.