requests

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 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 MustDeleteWithContext added in v1.0.4

func MustDeleteWithContext(ctx context.Context, url string, payload io.Reader) *http.Request

func MustGet added in v1.0.3

func MustGet(url string) *http.Request

func MustGetWithContext added in v1.0.4

func MustGetWithContext(ctx context.Context, url string) *http.Request

func MustHead added in v1.0.3

func MustHead(url string) *http.Request

func MustHeadWithContext added in v1.0.4

func MustHeadWithContext(ctx context.Context, url string) *http.Request

func MustPatch added in v1.0.3

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

func MustPatchWithContext added in v1.0.4

func MustPatchWithContext(ctx context.Context, url string, payload io.Reader) *http.Request

func MustPost added in v1.0.3

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

func MustPostWithContext added in v1.0.4

func MustPostWithContext(ctx context.Context, url string, payload io.Reader) *http.Request

func MustPut added in v1.0.3

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

func MustPutWithContext added in v1.0.4

func MustPutWithContext(ctx context.Context, 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