http

package
v0.0.0-...-3d9a2d0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorDoRequest error = errors.New("Unable to create a request to reach that destination.")
)

Functions

func Get

func Get(opts *HTTPOptions) (acquireResponse *fasthttp.Response, err error)

Get method (with fasthttp)

func Post

func Post(opts *HTTPOptions) (acquireResponse *fasthttp.Response, err error)

Post method (with fasthttp)

Types

type HTTPOptions

type HTTPOptions struct {
	URI     string
	Headers map[string]string

	Payload []byte
}

Jump to

Keyboard shortcuts

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