testhttp

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestGet

func TestGet(t *testing.T, url string) (statusCode int, body string)

func TestUrl

func TestUrl(t *testing.T, method string, bodyData string, url string, headers url.Values) (statusCode int, body string)

Types

type TestHeaders

type TestHeaders struct {
	Headers url.Values
}

func HeaderBuilder

func HeaderBuilder() *TestHeaders

func (*TestHeaders) Add

func (t *TestHeaders) Add(header string, value string) *TestHeaders

func (*TestHeaders) AddNonEmpty

func (t *TestHeaders) AddNonEmpty(header string, value string) *TestHeaders

Jump to

Keyboard shortcuts

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