httpclient

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequest

func CreateRequest(method string, uri string, payload []byte, token string) (*http.Request, error)

CreateRequest returns an http request with headers

func Request

func Request(method string, uri string, payload []byte, token string) ([]byte, error)

Request returns a response body and status code

func StatusIs20X

func StatusIs20X(status int) bool

StatusIs20X takes a status code, returns true if status is a 20X

Types

This section is empty.

Jump to

Keyboard shortcuts

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