biu

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ready

func Ready(method Method, requestUrl 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
	Timeout  time.Duration
	Cookies  []*Cookie
	ProxyUrl string // http://127.0.0.1:8080
	Headers  map[string]string
	Body     *Body
	UrlParam *UrlParam
}

type Protocol

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

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