Documentation
¶
Overview ¶
Package util provides some utility functions for dealing with HTTP requests and responses
Index ¶
- func MakeRequest(method string, url string, input io.Reader, headersIncluded bool) (*http.Response, error)
- func WriteRequest(w io.Writer, req *http.Request, includeMethod bool, includeUrl bool, ...) error
- func WriteResponse(w io.Writer, resp *http.Response, includeHeaders bool, includeStatus bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRequest ¶
func MakeRequest(method string, url string, input io.Reader, headersIncluded bool) (*http.Response, error)
MakeRequest performs an HTTP request based on the information provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.