biu

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ready

func Ready(method Method, url string, options *Options) *biu

Types

type AllowRedirects

type AllowRedirects struct {
	Max            uint
	Protocols      []Protocol
	Strict         bool
	Referer        bool
	TrackRedirects bool
}

type Body

type Body map[string]interface{}
type Cookie = http.Cookie

type Method

type Method string
const (
	MethodGet    Method = "GET"
	MethodPost   Method = "POST"
	MethodPut    Method = "PUT"
	MethodPatch  Method = "PATCH"
	MethodDelete Method = "DELETE"
)

type Options

type Options struct {
	//AllowRedirects AllowRedirects
	//HttpErrors     bool
	//DecodeContent  bool
	//Verify         bool
	Cookies []*Cookie
	//Proxy          map[Proxy]string // use `,` for delimiter
	Headers  map[string]string
	Body     *Body
	UrlParam *UrlParam
}

type Protocol

type Protocol string
const (
	ProtocolHttp  Protocol = "http"
	ProtocolHttps Protocol = "https"
)

type Proxy

type Proxy string
const (
	ProxyHttp  Proxy = "http"
	ProxyHttps Proxy = "https"
	ProxyNo    Proxy = "no"
)

type UrlParam

type UrlParam map[string]string

Jump to

Keyboard shortcuts

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