Documentation
¶
Index ¶
- type HttpClient
- func (this HttpClient) Delete() (retVal HttpExecutor)
- func (this HttpClient) Execute(url string, headers map[string]string, body []byte) (response []byte, err error)
- func (this HttpClient) ExecuteWithReader(url string, headers map[string]string, body io.Reader) (response []byte, err error)
- func (this HttpClient) Get() (retVal HttpExecutor)
- func (this HttpClient) Post() (retVal HttpExecutor)
- func (this HttpClient) Put() (retVal HttpExecutor)
- func (this HttpClient) SetContentType(newContentType string) HttpClient
- func (this HttpClient) WithBasicAuth(user string, password string) HttpExecutor
- type HttpExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func (HttpClient) Delete ¶
func (this HttpClient) Delete() (retVal HttpExecutor)
func (HttpClient) ExecuteWithReader ¶
func (HttpClient) Get ¶
func (this HttpClient) Get() (retVal HttpExecutor)
func (HttpClient) Post ¶
func (this HttpClient) Post() (retVal HttpExecutor)
func (HttpClient) Put ¶
func (this HttpClient) Put() (retVal HttpExecutor)
func (HttpClient) SetContentType ¶
func (this HttpClient) SetContentType(newContentType string) HttpClient
func (HttpClient) WithBasicAuth ¶
func (this HttpClient) WithBasicAuth(user string, password string) HttpExecutor
type HttpExecutor ¶
type HttpExecutor interface { WithBasicAuth(user string, password string) HttpExecutor Get() (retVal HttpExecutor) Put() (retVal HttpExecutor) Post() (retVal HttpExecutor) Delete() (retVal HttpExecutor) SetContentType(newContentType string) HttpClient ExecuteWithReader(url string, headers map[string]string, at io.Reader) (response []byte, err error) Execute(url string, headers map[string]string, body []byte) (response []byte, err error) }
func NewHttpExecutor ¶
func NewHttpExecutor() HttpExecutor
Click to show internal directories.
Click to hide internal directories.