Documentation
¶
Index ¶
- Constants
- type ContentType
- type RestyClient
- func (c *RestyClient) R() *restyRequest
- func (c *RestyClient) SetBaseUrl(baseUrl string) *RestyClient
- func (c *RestyClient) SetHeader(key, value string) *RestyClient
- func (c *RestyClient) SetHeaders(headers map[string]string) *RestyClient
- func (c *RestyClient) SetTimeout(timeout time.Duration) *RestyClient
Constants ¶
View Source
const (
HeadContentType = "content-type"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentType ¶
type ContentType string
const (
ContentTypeJson ContentType = "application/json"
)
type RestyClient ¶
type RestyClient struct {
// contains filtered or unexported fields
}
func NewRestyClient ¶
func NewRestyClient(proxyHttpHost ...string) *RestyClient
func (*RestyClient) SetBaseUrl ¶
func (c *RestyClient) SetBaseUrl(baseUrl string) *RestyClient
func (*RestyClient) SetHeader ¶
func (c *RestyClient) SetHeader(key, value string) *RestyClient
func (*RestyClient) SetHeaders ¶
func (c *RestyClient) SetHeaders(headers map[string]string) *RestyClient
func (*RestyClient) SetTimeout ¶
func (c *RestyClient) SetTimeout(timeout time.Duration) *RestyClient
Click to show internal directories.
Click to hide internal directories.