request

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessUnexpectedResponse

func ProcessUnexpectedResponse(resp *Response)

Types

type Request

type Request struct {
	// contains filtered or unexported fields
}
var Trickest *Request

func New

func New() *Request

func (*Request) Body

func (r *Request) Body(body []byte) *Request

func (*Request) Delete

func (r *Request) Delete() *Request

func (*Request) Do

func (r *Request) Do(url string) *Response

func (*Request) DoF

func (r *Request) DoF(url string, v ...interface{}) *Response

func (*Request) Endpoint

func (r *Request) Endpoint(endpoint string) *Request

func (*Request) Get

func (r *Request) Get() *Request

func (*Request) Header

func (r *Request) Header(header string, value string) *Request

func (*Request) Patch

func (r *Request) Patch() *Request

func (*Request) Post

func (r *Request) Post() *Request

func (*Request) Put

func (r *Request) Put() *Request

func (*Request) Verb

func (r *Request) Verb(verb string) *Request

func (*Request) Version

func (r *Request) Version(version string) *Request

type Response

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

func (*Response) Body

func (r *Response) Body() []byte

func (*Response) Status

func (r *Response) Status() int

Jump to

Keyboard shortcuts

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