requests

package
v0.0.0-...-d9e7967 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BadGateway = errors.New("bat gateway")

Functions

This section is empty.

Types

type Request

type Request struct {
	Method    string
	Uri       string
	JsonBody  interface{}
	UrlValues url.Values
	Header    http.Header

	Body *bytes.Buffer

	Flags RequestFlags
}

type RequestClient

type RequestClient struct {
	Url     string
	Timeout time.Duration
	Header  http.Header
}

func (*RequestClient) NewRequest

func (c *RequestClient) NewRequest(req *Request, res *Response) error

type RequestFlags

type RequestFlags struct {
	IsBodyString bool
}

type Response

type Response struct {
	Code int

	BodyRaw []byte
	Body    string

	Struct interface{}

	Header http.Header
}

Jump to

Keyboard shortcuts

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