httpclix

package
v1.37.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 10 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 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