Documentation
¶
Index ¶
- type Authentication
- type RequestOptions
- type Requester
- func (r *Requester) Authenticate(ctx context.Context) error
- func (r *Requester) CloneWithNewBasePath(newPath string) *Requester
- func (r *Requester) Delete(ctx context.Context, opts ...WithRequestOption) (*http.Response, error)
- func (r *Requester) Do(ctx context.Context, opts ...WithRequestOption) (*http.Response, error)
- func (r *Requester) Get(ctx context.Context, opts ...WithRequestOption) (*http.Response, error)
- func (r *Requester) Post(ctx context.Context, opts ...WithRequestOption) (*http.Response, error)
- func (r *Requester) Put(ctx context.Context, opts ...WithRequestOption) (*http.Response, error)
- type WithRequestOption
- func WithBodyBytes(body []byte) WithRequestOption
- func WithBodyReader(body io.Reader) WithRequestOption
- func WithDELETE() WithRequestOption
- func WithGET() WithRequestOption
- func WithHeader(key string, values ...string) WithRequestOption
- func WithNoRetry() WithRequestOption
- func WithPOST() WithRequestOption
- func WithPUT() WithRequestOption
- func WithPath(urlPath string) WithRequestOption
- func WithQueryParameter(key string, values ...string) WithRequestOption
- func WithResponseField(field string) WithRequestOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type RequestOptions ¶
type RequestOptions struct {
// contains filtered or unexported fields
}
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func NewRequester ¶
func (*Requester) CloneWithNewBasePath ¶
type WithRequestOption ¶
type WithRequestOption func(r *RequestOptions)
func WithBodyBytes ¶
func WithBodyBytes(body []byte) WithRequestOption
func WithBodyReader ¶
func WithBodyReader(body io.Reader) WithRequestOption
func WithDELETE ¶
func WithDELETE() WithRequestOption
func WithGET ¶
func WithGET() WithRequestOption
func WithHeader ¶
func WithHeader(key string, values ...string) WithRequestOption
func WithNoRetry ¶
func WithNoRetry() WithRequestOption
func WithPOST ¶
func WithPOST() WithRequestOption
func WithPUT ¶
func WithPUT() WithRequestOption
func WithPath ¶
func WithPath(urlPath string) WithRequestOption
func WithQueryParameter ¶
func WithQueryParameter(key string, values ...string) WithRequestOption
func WithResponseField ¶
func WithResponseField(field string) WithRequestOption
Click to show internal directories.
Click to hide internal directories.