Documentation ¶
Index ¶
- func AddCookie(key, value string) interfaces.ClientOption
- func AddHeader(key, value string) interfaces.ClientOption
- func AddQueryParam(key, value string) interfaces.ClientOption
- func WithAuthToken(token string) interfaces.ClientOption
- func WithBasicAuthentication(username, password string) interfaces.ClientOption
- func WithBody(body string) interfaces.ClientOption
- func WithUrl(url string) interfaces.ClientOption
- func WithX509Certificate(pem, key string) interfaces.ClientOption
- type Resty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCookie ¶
func AddCookie(key, value string) interfaces.ClientOption
func AddHeader ¶
func AddHeader(key, value string) interfaces.ClientOption
func AddQueryParam ¶
func AddQueryParam(key, value string) interfaces.ClientOption
func WithAuthToken ¶
func WithAuthToken(token string) interfaces.ClientOption
func WithBasicAuthentication ¶
func WithBasicAuthentication(username, password string) interfaces.ClientOption
func WithBody ¶
func WithBody(body string) interfaces.ClientOption
func WithUrl ¶
func WithUrl(url string) interfaces.ClientOption
func WithX509Certificate ¶
func WithX509Certificate(pem, key string) interfaces.ClientOption
Types ¶
type Resty ¶
type Resty struct { Url string QueryParams map[string]string Headers map[string]string Cookies map[string]string AuthToken string Body string Username string Password string // contains filtered or unexported fields }
func New ¶
func New(options ...interfaces.ClientOption) (*Resty, error)
Click to show internal directories.
Click to hide internal directories.