Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHeaders ¶
ParseHeaders splits raw "Key: Value" strings into a map. Values containing colons are handled correctly (split on first ": " only).
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExecuteRequest ¶
type RequestParams ¶
type RequestParams struct {
Method string
URL string
Headers map[string]string
Body string
QueryParams map[string]string
Timeout time.Duration
FollowRedirects bool
SaveTo string // write response body to this file instead of returning it
MaxResponseSize int64 // per-request override; 0 means use the client default
Files map[string]string // multipart uploads: form field name -> local file path
FormFields map[string]string // multipart text fields, sent alongside Files
}
Click to show internal directories.
Click to hide internal directories.