Documentation ¶
Overview ¶
Package http provides a basic http interface that can be used by higher-level abstractions that need to execute http requests but do not care about the underlying host or configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpClient ¶
type HttpClient interface { Head(path string, headers map[string]string) (*http.Response, error) Get(path string, headers map[string]string) (*http.Response, error) Post(path, payload string, headers map[string]string) (*http.Response, error) PostMultipart(path string, parts map[string]string, headers map[string]string) (*http.Response, error) Put(path, payload string, headers map[string]string) (*http.Response, error) Delete(path string, headers map[string]string) (*http.Response, error) }
HttpClient interface containing methods for the most common HTTP methods
Click to show internal directories.
Click to hide internal directories.