request

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Cookies []*http.Cookie
}

func (*Request) AddCookieAndHeader2Req

func (r *Request) AddCookieAndHeader2Req(req *http.Request)

func (*Request) Get

func (r *Request) Get(url string) ([]byte, error)

func (*Request) NewGet

func (r *Request) NewGet(url string) (*http.Request, error)

func (*Request) NewPost

func (r *Request) NewPost(url string, body []byte) (*http.Request, error)

func (*Request) Post

func (r *Request) Post(url string, data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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