httptest

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2015 License: Apache-2.0 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