tests

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(method string, url string, opts NewRequestOptions) (*http.Request, error)

NewRequest creates a new Request for testing, but adds RequestURI as the default imlemented in GoLang does not add the RequestURI and leaves it to the end user to implement

Types

type NewRequestOptions

type NewRequestOptions struct {
	Body       string
	Headers    map[string]string
	GetValues  url.Values
	PostValues *url.Values
}

Jump to

Keyboard shortcuts

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