http

package
v1.43.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: OSL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default_Client = Client{
	Log_Level: 1,
	// contains filtered or unexported fields
}
View Source
var NewRequest = http.NewRequest

Functions

func Read_Request

func Read_Request(in io.Reader) (*http.Request, error)

Types

type Client

type Client struct {
	Log_Level int // this needs to work with flag.IntVar
	// contains filtered or unexported fields
}

func (Client) Do

func (c Client) Do(req *http.Request) (*http.Response, error)

func (Client) Get

func (c Client) Get(addr string) (*http.Response, error)

func (Client) Level

func (c Client) Level(level int) Client

func (Client) Redirect added in v1.41.4

func (c Client) Redirect(fn Redirect_Func) Client

func (Client) Status

func (c Client) Status(status int) Client

func (Client) Transport added in v1.41.4

func (c Client) Transport(tr *http.Transport) Client
type Cookie = http.Cookie
type Header = http.Header

type Redirect_Func added in v1.41.9

type Redirect_Func func(*http.Request, []*http.Request) error

type Request

type Request = http.Request

type Response added in v1.42.1

type Response = http.Response

type Transport

type Transport = http.Transport

Jump to

Keyboard shortcuts

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