Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceFromHeader ¶
func DeviceFromHeader(r http.Header) *contexti.DeviceInfo
Types ¶
type Context ¶
type Context = contexti.RequestContext[RequestCtx]
func ContextFromContext ¶
func ContextFromRequest ¶
func ContextFromRequest(req RequestCtx, tracing bool) (*Context, trace.Span)
type HttpContext ¶
type HttpContext contexti.RequestContext[RequestCtx]
func (*HttpContext) SendHeader ¶
func (c *HttpContext) SendHeader(md metadata.MD) error
func (*HttpContext) SetCookie ¶
func (c *HttpContext) SetCookie(v string) error
func (*HttpContext) SetTrailer ¶
func (c *HttpContext) SetTrailer(md metadata.MD) error
func (*HttpContext) WriteHeader ¶
func (c *HttpContext) WriteHeader(k, v string) error
type RequestCtx ¶
type RequestCtx struct { Request *http.Request Response http.ResponseWriter }
Click to show internal directories.
Click to hide internal directories.