Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
SetBaseHeaders(headers map[string]string)
WithHeaders(headers map[string]string) Request
WithCookies(cookies []*http.Cookie) Request
Get(ctx context.Context, endpoint string, params interface{}) (*http.Response, error)
Post(ctx context.Context, endpoint string, body interface{}) (*http.Response, error)
PostRaw(ctx context.Context, endpoint string, raw []byte) (*http.Response, error)
Put(ctx context.Context, endpoint string, body interface{}) (*http.Response, error)
PutRaw(ctx context.Context, endpoint string, raw []byte) (*http.Response, error)
Patch(ctx context.Context, endpoint string, body interface{}) (*http.Response, error)
PatchRaw(ctx context.Context, endpoint string, raw []byte) (*http.Response, error)
Delete(ctx context.Context, endpoint string) (*http.Response, error)
}
type Request ¶
type Request interface {
WithHeaders(headers map[string]string) Request
WithCookies(cookies []*http.Cookie) Request
Get(ctx context.Context, endpoint string, params interface{}) (*http.Response, error)
Post(ctx context.Context, endpoint string, body interface{}) (*http.Response, error)
PostRaw(ctx context.Context, endpoint string, raw []byte) (*http.Response, error)
Put(ctx context.Context, endpoint string, body interface{}) (*http.Response, error)
PutRaw(ctx context.Context, endpoint string, raw []byte) (*http.Response, error)
Patch(ctx context.Context, endpoint string, body interface{}) (*http.Response, error)
PatchRaw(ctx context.Context, endpoint string, raw []byte) (*http.Response, error)
Delete(ctx context.Context, endpoint string) (*http.Response, error)
}
Click to show internal directories.
Click to hide internal directories.