http

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient() netHTTP.Client

func NewHttpClientFromHandler

func NewHttpClientFromHandler(handler netHTTP.Handler) netHTTP.Client

Types

type TestRoundTripper

type TestRoundTripper struct{ http.Handler }

A TestRoundTripper is an implementation of the http.RoundTripper interface that communicates directly with an http.Handler instance.

func (TestRoundTripper) RoundTrip

func (h TestRoundTripper) 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