httptest

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	Err error
	// contains filtered or unexported fields
}

func NewFakeClient

func NewFakeClient() *FakeClient

func NewFakeClientEmptyJSON added in v0.12.10

func NewFakeClientEmptyJSON() *FakeClient

func (*FakeClient) ClearRequests added in v0.12.11

func (fc *FakeClient) ClearRequests()

func (*FakeClient) Do

func (fc *FakeClient) Do(req *http.Request) (*http.Response, error)

func (*FakeClient) Requests added in v0.10.7

func (fc *FakeClient) Requests() []http.Request

func (*FakeClient) SetResponse added in v0.10.7

func (fc *FakeClient) SetResponse(s string)

Jump to

Keyboard shortcuts

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