xhttp

package
v0.0.0-...-2d2e953 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(req *http.Request) ([]byte, error)

Do executes an HTTP request and returns the response body. Any errors or non-200 status code result in an error.

func DoWithClient

func DoWithClient(req *http.Request, client *http.Client) ([]byte, error)

DoWithClient executes an HTTP request and returns the response body. Any errors or non-200 status code result in an error.

func Get

func Get(url string) ([]byte, error)

Get executes an HTTP GET request and returns the response body. Any errors or non-200 status code result in an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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