Documentation ¶
Index ¶
- type FormFile
- type Option
- func (op *Option) AddFormFile(key string, value *FormFile) *Option
- func (op *Option) AddFormValue(key string, value string) *Option
- func (op *Option) Query(key, value string) *Option
- func (op *Option) SetBasicAuth(username, password string) *Option
- func (op *Option) SetBearerAuth(token string) *Option
- func (op *Option) SetData(body []byte) *Option
- func (op *Option) SetJSON(v interface{}) error
- func (op *Option) SetMethod(method string) *Option
- func (op *Option) SubmitFormData() *Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Client *http.Client Method string // http.MethodX Queries map[string]string Forms map[string][]interface{} Header http.Header Body io.Reader // contains filtered or unexported fields }
func CurlOption ¶
func CurlOption() *Option
func (*Option) SetBasicAuth ¶
func (*Option) SetBearerAuth ¶
func (*Option) SubmitFormData ¶
Click to show internal directories.
Click to hide internal directories.