requests

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 5 Imported by: 3

README

github.com/RabiesDev/request-helper

Helpers to make it easier for me to write requests

go get github.com/RabiesDev/request-helper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustDelete added in v1.0.3

func MustDelete(url string, payload io.Reader) *http.Request

func MustGet added in v1.0.3

func MustGet(url string) *http.Request

func MustHead added in v1.0.3

func MustHead(url string) *http.Request

func MustPatch added in v1.0.3

func MustPatch(url string, payload io.Reader) *http.Request

func MustPost added in v1.0.3

func MustPost(url string, payload io.Reader) *http.Request

func MustPut added in v1.0.3

func MustPut(url string, payload io.Reader) *http.Request

func ReadBody added in v1.0.3

func ReadBody(response *http.Response) ([]byte, error)

func ReadBytes added in v1.0.3

func ReadBytes(client *http.Client, request *http.Request) ([]byte, *http.Response, error)

func ReadString added in v1.0.3

func ReadString(client *http.Client, request *http.Request) (string, *http.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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