request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(r *http.Request, dst any) (err error)

JSON executes r with the default HTTP client and performs API-related processing such as deserialization and error-checking. If no errors occur, it attempts to unmarshal the response body into dst.

func Plain

func Plain(r *http.Request) (io.ReadCloser, error)

Plain executes r with the default HTTP client and returns the plain body. Remember to close it after reading.

Types

This section is empty.

Jump to

Keyboard shortcuts

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