klienttest

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KlientTest

type KlientTest struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...klient.OptionClientFn) (*KlientTest, error)

func (*KlientTest) Client

func (k *KlientTest) Client() *klient.Client

func (*KlientTest) SetHandler

func (k *KlientTest) SetHandler(handler http.HandlerFunc)

type TransportHandler

type TransportHandler struct {
	Handler http.HandlerFunc
	// contains filtered or unexported fields
}

TransportHandler is base of http.RoundTripper.

func (*TransportHandler) RoundTrip

func (t *TransportHandler) RoundTrip(req *http.Request) (*http.Response, error)

func (*TransportHandler) SetHandler

func (t *TransportHandler) SetHandler(handler http.HandlerFunc)

Jump to

Keyboard shortcuts

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