testutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutil contains internal test utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestValues

type RequestValues struct {
	Request *http.Request
}

func Get

func Get(url string) *RequestValues

func NewRequest

func NewRequest(method, url string, body io.Reader) *RequestValues

func Post

func Post(url string, body io.Reader) *RequestValues

func PostJSON

func PostJSON(url string, body any) *RequestValues

func (*RequestValues) Do

func (req *RequestValues) Do() (*http.Response, error)

func (*RequestValues) Header

func (req *RequestValues) Header(key, value string) *RequestValues

Jump to

Keyboard shortcuts

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