request

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
}

func (*HTTPRequest) Request

func (h *HTTPRequest) Request(method, url string, body interface{}, headers map[string]string) (*http.Request, error)

type Interface

type Interface interface {
	Request(method, url string, body interface{}, headers map[string]string) (*http.Request, error)
}

func NewHTTPRequest

func NewHTTPRequest() Interface

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) Request

func (m *Mock) Request(method, url string, body interface{}, headers map[string]string) (*http.Request, error)

Jump to

Keyboard shortcuts

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