request

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Get           = "GET"
	Head          = "HEAD"
	Post          = "POST"
	Put           = "PUT"
	Patch         = "PATCH" // RFC 5789
	Delete        = "DELETE"
	Connect       = "CONNECT"
	MethodOptions = "OPTIONS"
	Trace         = "TRACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRequest

type IRequest interface{}

type Param

type Param struct {
	Method  string
	Url     string
	Headers map[string]string
	Body    io.Reader
}

Param 请求参数

func (*Param) AddHeader

func (param *Param) AddHeader(key, value string)

AddHeader 添加header头

Jump to

Keyboard shortcuts

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