network

package
v0.0.0-...-bf7e6f2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResponseBody

func GetResponseBody(resp *http.Response, keepBody bool) ([]byte, error)

func Request

func Request(clientRequest *ClientRequest) (*http.Response, error)

func StealResponseBody

func StealResponseBody(resp *http.Response) (io.Reader, error)

Types

type ClientRequest

type ClientRequest struct {
	Method               string
	RemoteUrl            string
	Host                 string
	ForbiddenEncodeQuery bool
	Header               http.Header
	Body                 io.Reader
	Cookies              []*http.Cookie
	Proxy                bool
	ConnectTimeout       time.Duration
}

type Netease

type Netease struct {
	Path     string
	Params   string
	JsonBody map[string]interface{}
}

Jump to

Keyboard shortcuts

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