httphelper

package
v0.0.0-...-dbb2ee5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(t *testing.T, options ...Option) *http.Client

Types

type Option

type Option func(*Options)

func WithPrefix

func WithPrefix(prefix string) Option

type Options

type Options struct {
	Prefix string
}

type RoundTripFunc

type RoundTripFunc func(*http.Request) (*http.Response, error)

func TestLogTransportWrapper

func TestLogTransportWrapper(t *testing.T, prefix string, rt http.RoundTripper) RoundTripFunc

func (RoundTripFunc) RoundTrip

func (fn RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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