Documentation
¶
Index ¶
- Constants
- type BaseClient
- func (c *BaseClient) Delete(url string) (*http.Response, error)
- func (c *BaseClient) Do(req *http.Request) (*http.Response, error)
- func (c *BaseClient) Get(url string) (*http.Response, error)
- func (c *BaseClient) Patch(url, contentType string, body io.Reader) (*http.Response, error)
- func (c *BaseClient) Post(url, contentType string, body io.Reader) (*http.Response, error)
- func (c *BaseClient) Put(url, contentType string, body io.Reader) (*http.Response, error)
- func (c *BaseClient) Request(method, url, contentType string, body io.Reader) (*http.Response, error)
Constants ¶
View Source
const ( ContentTypeHeader = "Content-Type" OriginHeader = "Origin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
func NewBaseClient ¶
func NewBaseClient(client *http.Client, address string) *BaseClient
Click to show internal directories.
Click to hide internal directories.