httpclient

package
v0.0.0-...-b6284df Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterJSObjects

func RegisterJSObjects(b *infra.Banai)

RegisterJSObjects register func to JS

Types

type RequestOpt

type RequestOpt struct {
	IgnoreHTTPSChecks bool              `json:"ignoreHttpsChecks,omitempty"`
	AllowRedirect     bool              `json:"allowRedirect,omitempty"`
	Timeout           int               `json:"timeout,omitempty"`
	Header            map[string]string `json:"header,omitempty"`
	Cookies           []*http.Cookie    `json:"cookies,omitempty"`
	ContentType       string            `json:"contentType,omitempty"`
	Accept            string            `json:"accept,omitempty"`
}

RequestOpt options to run an http request

Jump to

Keyboard shortcuts

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