httputil

package
v0.0.0-...-9591dfb Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHeaders

func DefaultHeaders(next http.Handler) http.Handler

DefaultHeaders is a wrapper function setting the reponse headers

func ParseJSON

func ParseJSON(rc io.Reader, object interface{}) error

ParseJSON parses the given json request into interface

func SendHTTPGETRequest

func SendHTTPGETRequest(url string, headers map[string]string, debug bool) (*http.Response, error)

SendHTTPGETRequest allows easy send of http GET requests. Automatically takes care of retrying

func SendHTTPPOSTRequest

func SendHTTPPOSTRequest(url string, headers map[string]string, messageBody []byte, debug bool) (*http.Response, error)

SendHTTPPOSTRequest allows easy send of http POST requests. Automatically takes care of retrying

Types

This section is empty.

Jump to

Keyboard shortcuts

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