Documentation ¶
Index ¶
- func SetDefaultClient(client *Client)
- type Client
- type NewClientOptions
- type Request
- func (r *Request) AddCookie(cookie *http.Cookie) *Request
- func (r *Request) AddHeader(key string, value string) *Request
- func (r *Request) Do() (*Response, error)
- func (r *Request) GetBody() []byte
- func (r *Request) GetCookies() []*http.Cookie
- func (r *Request) GetHeader() http.Header
- func (r *Request) GetMethod() string
- func (r *Request) GetURL() string
- func (r *Request) SetBody(body io.Reader) *Request
- func (r *Request) SetHeader(key string, value string) *Request
- func (r *Request) WithCookies(cookies []*http.Cookie) *Request
- func (r *Request) WithHeader(header http.Header) *Request
- func (r *Request) WithSecurityScheme(securityScheme *auth.SecurityScheme) *Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultClient ¶ added in v0.8.3
func SetDefaultClient(client *Client)
Types ¶
type Client ¶ added in v0.6.1
func GetDefaultClient ¶ added in v0.8.3
func GetDefaultClient() *Client
func NewClient ¶ added in v0.6.1
func NewClient(opts NewClientOptions) *Client
func (*Client) ClearSecurityScheme ¶ added in v0.8.5
func (c *Client) ClearSecurityScheme(securityScheme *auth.SecurityScheme) *Client
func (*Client) ClearSecuritySchemes ¶ added in v0.8.5
func (c *Client) ClearSecuritySchemes(securitySchemes []*auth.SecurityScheme) *Client
func (*Client) WithCookies ¶ added in v0.6.1
type NewClientOptions ¶ added in v0.6.1
type Request ¶ added in v0.3.1
func NewRequest ¶ added in v0.3.0
func (*Request) GetCookies ¶ added in v0.8.3
func (*Request) WithCookies ¶ added in v0.6.1
func (*Request) WithHeader ¶ added in v0.7.2
func (*Request) WithSecurityScheme ¶ added in v0.3.1
func (r *Request) WithSecurityScheme(securityScheme *auth.SecurityScheme) *Request
type Response ¶ added in v0.8.3
func (*Response) GetCookies ¶ added in v0.8.3
func (*Response) GetStatusCode ¶ added in v0.8.3
Click to show internal directories.
Click to hide internal directories.