httputils

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotAllowed added in v1.7.0

func NotAllowed(w http.ResponseWriter, r *http.Request)

NotAllowed writes 405 to the writer object

func NotFound added in v1.7.0

func NotFound(w http.ResponseWriter, r *http.Request)

NotFound writes 404 to the write object

func SendPOSTRequest

func SendPOSTRequest(url, token string, data []byte) (*http.Response, error)

SendPOSTRequest sends a http POST request

func SendRequest

func SendRequest(method, url, token string, data []byte) (*http.Response, error)

SendRequest sends a http request on the given url

Types

This section is empty.

Jump to

Keyboard shortcuts

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