requestmock

package
v0.0.0-...-f3ec421 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestMock

type RequestMock struct {
	Body    string            `json:"body"`
	Headers map[string]string `json:"headers"`
}

func LoadRequestMock

func LoadRequestMock(t *testing.T, fileName string) (request RequestMock)

func (RequestMock) ToHttpRequest

func (dump RequestMock) ToHttpRequest(url string) *http.Request

Jump to

Keyboard shortcuts

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