testutil

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPDirectClient

func HTTPDirectClient(handler http.Handler) *http.Client

HTTPDirectClient creates an http.Client that sends requests directly to the provided handler using HTTPDirectRoundTripper

Types

type HTTPDirectRoundTripper

type HTTPDirectRoundTripper struct {
	http.Handler
}

HTTPDirectRoundTripper implements http.RoundTripper sending requests directly to the wrapped Handler

func (HTTPDirectRoundTripper) RoundTrip

func (rt HTTPDirectRoundTripper) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip implements http.RoundTripper sending requests directly to the wrapped Handler

Jump to

Keyboard shortcuts

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