client

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentType

func GetContentType(header http.Header) string

GetContentType returns the Content-Type header of the request.

func Send

func Send(
	caseDir string,
	method string,
	url string,
	hasBody bool, body string,
	headers map[string]string,
	cookie string,
	auth config.BasicAuth,
	disableRedirect bool,
	maxRedirects int,
	hook config.Hook,
	timeout int,
	proxy string,
	debug bool,
) (resp *http.Response, respBody []byte, redirectCount int64, latency int64, debugLogs []string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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