httprequest

package
v0.0.0-...-169b2ab Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GetStr     = "GET"
	PutStr     = "PUT"
	PatchStr   = "PATCH"
	PostStr    = "POST"
	DeleteStr  = "DELETE"
	OptionsStr = "OPTIONS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {
	Method string
	URL    string
	Body   []byte
}

func (*HTTPRequest) Perform

func (req *HTTPRequest) Perform() (response *http.Response, err error)

func (*HTTPRequest) ToString

func (req *HTTPRequest) ToString() string

Jump to

Keyboard shortcuts

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