httptest

package
v0.0.0-...-1aaa49d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityCaptcherFunc

type EntityCaptcherFunc func(http.HttpRequestEntity)

type MockGateway

type MockGateway struct {
	FakeGetAdaptor  http.RequestAdaptor
	FakePutAdaptor  http.RequestAdaptor
	FakePostAdaptor http.RequestAdaptor
	Capture         EntityCaptcherFunc
}

func (*MockGateway) Get

func (gateway *MockGateway) Get(entity http.HttpRequestEntity) http.RequestAdaptor

func (*MockGateway) Post

func (gateway *MockGateway) Post(entity http.HttpRequestEntity, body io.Reader) http.RequestAdaptor

func (*MockGateway) Put

func (gateway *MockGateway) Put(entity http.HttpRequestEntity, body io.Reader) http.RequestAdaptor

Jump to

Keyboard shortcuts

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