httpclient

package
v0.0.0-...-c2300e3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package httpclient implements a wrapper of http client supports logging, tracing, and proxy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *http.Client

New returns a HTTP client with logging, tracing, and proxy support

Types

type Option

type Option func(o *options)

func WithLogger

func WithLogger(l *logger.Logger, body bool) Option

func WithProxy

func WithProxy(proxy *url.URL) Option

func WithTracing

func WithTracing() Option

Jump to

Keyboard shortcuts

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