gokhttp_responses

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHTTPCode

func CheckHTTPCode(resp *http.Response, expectedCodes ...int) error

func ResponseBytes

func ResponseBytes(resp *http.Response) ([]byte, error)

func ResponseCustomMarshal

func ResponseCustomMarshal(resp *http.Response, marshal func([]byte, any) error, result interface{}) error

func ResponseJSON

func ResponseJSON(resp *http.Response, result interface{}) error

func ResponseText

func ResponseText(resp *http.Response) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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