Discover Packages
github.com/BBVA/kapow
internal
http
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Dec 17, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Delete(url, contentType, r, w)
Get(url, contentType, r, w)
Post(url, contentType, r, w)
Put(url, contentType, r, w)
Reason(r)
Request(method, url, contentType, r, w)
Types
Source Files
Documentation
Documentation
¶
func Delete(url string, contentType string, r io.Reader, w io.Writer) error
func Get(url string, contentType string, r io.Reader, w io.Writer) error
func Post(url string, contentType string, r io.Reader, w io.Writer) error
func Put(url string, contentType string, r io.Reader, w io.Writer) error
func Reason(r *http.Response) (string, error)
func Request(method string, url string, contentType string, r io.Reader, w io.Writer) error
Delete perform a request using Request with the DELETE method
Get perform a request using Request with the GET method
Post perform a request using Request with the POST method
Put perform a request using Request with the PUT method
Reason returns the reason phrase embedded within the JSON error
body, or an error if no reason can be extracted
Request will perform the request to the given url and method sending the
content of the given reader as the body and writing all the contents
of the response to the given writer. The reader and writer are
optional.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.