requests

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 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 Requests

type Requests struct {
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(verbose bool) *Requests

func Request

func Request() *Requests

func (*Requests) AddHeader

func (r *Requests) AddHeader(header map[string]string) *Requests

func (*Requests) Delete

func (r *Requests) Delete(url string) *Requests

func (*Requests) End

func (r *Requests) End(callback ...func(response gorequest.Response, body []byte, errs []error)) (*http.Response, string, []error)

func (*Requests) EndBytes

func (r *Requests) EndBytes(callback ...func(response gorequest.Response, body []byte, errs []error)) (*http.Response, []byte, []error)

func (*Requests) Get

func (r *Requests) Get(url string) *Requests

func (*Requests) Post

func (r *Requests) Post(url string, body interface{}) *Requests

func (*Requests) Put

func (r *Requests) Put(url string, body interface{}) *Requests

Jump to

Keyboard shortcuts

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