httpctx

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: MIT Imports: 4 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context = reqctx.Context[RequestCtx]

func FromContext added in v0.3.9

func FromContext(ctx context.Context) (*Context, bool)

func FromRequest

func FromRequest(req RequestCtx) *Context

type RequestCtx

type RequestCtx struct {
	Request  *http.Request
	Response http.ResponseWriter
}

func (RequestCtx) RequestContext added in v0.3.0

func (ctx RequestCtx) RequestContext() context.Context

func (RequestCtx) RequestHeader added in v0.2.8

func (ctx RequestCtx) RequestHeader() httpi.Header

func (RequestCtx) ResponseHeader added in v0.2.8

func (ctx RequestCtx) ResponseHeader() httpi.Header

Jump to

Keyboard shortcuts

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