httpclix

package
v1.39.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(opts ...httpcli.Option) *httpcli.Client

func Log

func Log(logger log.Logger) httpcli.Middleware

func LogConfigToContext

func LogConfigToContext(ctx context.Context, logRequestBody, logResponseBody bool, opts ...LogOption) context.Context

func Metrics

func Metrics(storage *http_metrics.ClientStorage) httpcli.Middleware

func RequestId

func RequestId() httpcli.Middleware

Types

type ClientTracer added in v1.38.0

type ClientTracer struct {
	// contains filtered or unexported fields
}

func NewClientTracer added in v1.38.0

func NewClientTracer(clientStorage *metrics.ClientStorage, endpoint string) *ClientTracer

func (*ClientTracer) ClientTrace added in v1.38.0

func (cli *ClientTracer) ClientTrace() *httptrace.ClientTrace

func (*ClientTracer) ResponseReceived added in v1.38.0

func (cli *ClientTracer) ResponseReceived()

type LogOption added in v1.36.0

type LogOption func(*logConfig)

func LogDump added in v1.36.0

func LogDump(dumpRequest bool, dumpResponse bool) LogOption

func LogHeaders added in v1.36.0

func LogHeaders(requestHeaders bool, responseHeaders bool) LogOption

Jump to

Keyboard shortcuts

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