http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpResponse

type HttpResponse struct {
	Success       bool
	Error         error
	Body          string
	BodyBytes     []byte
	StatusCode    int
	Headers       string
	InnerResponse *fasthttp.Response
}

func CustomMethodWithData

func CustomMethodWithData(url, method, data string, headersList ...map[string]string) *HttpResponse

func Get

func Get(url string, headersList ...map[string]string) *HttpResponse

func Patch

func Patch(url string, data string, headersList ...map[string]string) *HttpResponse

func Post

func Post(url string, data string, headersList ...map[string]string) *HttpResponse

Jump to

Keyboard shortcuts

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