Documentation ¶
Index ¶
- type HttpClient
- func (c *HttpClient) Delete(url string, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) DeleteWithContext(ctx context.Context, url string, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) FetchToken(stage, username, password string) error
- func (c *HttpClient) FetchTokenWithContext(ctx context.Context, stage, username, password string) error
- func (c *HttpClient) Get(url string, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) GetWithContext(ctx context.Context, url string, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) Post(url string, in interface{}, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) PostWithContext(ctx context.Context, url string, in interface{}, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) Put(url string, in interface{}, out interface{}) (*HttpResponse, error)
- func (c *HttpClient) PutWithContext(ctx context.Context, url string, in interface{}, out interface{}) (*HttpResponse, error)
- type HttpResponse
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 New ¶
func New() *HttpClient
func NewWithToken ¶
func NewWithToken(token string) *HttpClient
func (*HttpClient) Delete ¶
func (c *HttpClient) Delete(url string, out interface{}) (*HttpResponse, error)
func (*HttpClient) DeleteWithContext ¶ added in v0.0.8
func (c *HttpClient) DeleteWithContext(ctx context.Context, url string, out interface{}) (*HttpResponse, error)
func (*HttpClient) FetchToken ¶
func (c *HttpClient) FetchToken(stage, username, password string) error
func (*HttpClient) FetchTokenWithContext ¶ added in v0.0.8
func (c *HttpClient) FetchTokenWithContext(ctx context.Context, stage, username, password string) error
func (*HttpClient) Get ¶
func (c *HttpClient) Get(url string, out interface{}) (*HttpResponse, error)
func (*HttpClient) GetWithContext ¶ added in v0.0.8
func (c *HttpClient) GetWithContext(ctx context.Context, url string, out interface{}) (*HttpResponse, error)
func (*HttpClient) Post ¶
func (c *HttpClient) Post(url string, in interface{}, out interface{}) (*HttpResponse, error)
func (*HttpClient) PostWithContext ¶ added in v0.0.8
func (c *HttpClient) PostWithContext(ctx context.Context, url string, in interface{}, out interface{}) (*HttpResponse, error)
func (*HttpClient) Put ¶
func (c *HttpClient) Put(url string, in interface{}, out interface{}) (*HttpResponse, error)
func (*HttpClient) PutWithContext ¶ added in v0.0.8
func (c *HttpClient) PutWithContext(ctx context.Context, url string, in interface{}, out interface{}) (*HttpResponse, error)
Click to show internal directories.
Click to hide internal directories.