package
0.0.0-20241106092102-d9454141fd22
Repository: https://github.com/hayovanloon/go-netcontext.git
Documentation: pkg.go.dev
# Functions
Client returns a new, wrapped http.Client.
CopyDeadline searches for the deadline in the headers and returns an updated context with a cancellation function.
Extract extracts the values from the headers (or trailers) and returns a new context with the values found.
ExtractWithDeadline works as Extract, but will set a deadline if one is found in the headers.
WrapClient wraps a standard http.Client.
WrapHandler wraps an http.Handler, adding configured values to the incoming context.
WrapHandlerFunc wraps an http.HandlerFunc, adding configured values to the incoming context.
# Structs
A ContextRoundTripper propagates the configured context values in an outgoing HTTP request.