Help us shape the future of Go! Take the 2026 Go Developer Survey

http

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHTTPTestClient

func MakeHTTPTestClient(config map[string]map[string]string) *http.Client

MakeHTTPTestClient creates a test HTTP client from a config map.

Types

type RoundTripFunc added in v0.39.0

type RoundTripFunc func(req *http.Request) *http.Response

RoundTripFunc is a function adapter to implement http.RoundTripper interface.

func (RoundTripFunc) RoundTrip added in v0.39.0

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

RoundTrip implements the http.RoundTripper interface.

Jump to

Keyboard shortcuts

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