Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPConfig ¶
type HTTPConfig struct { Timeout float64 Proxies []string Redirector func(i *http.Request, reqs []*http.Request) bool Session interface{} GetParams map[string]string Body []byte Headers map[string]string }
func NewHTTPConfig ¶
func NewHTTPConfig() *HTTPConfig
type HttpOption ¶
type HttpOption func(req *HTTPConfig)
type YakHttpRequest ¶
type YakHttpRequest struct { *http.Request Config *HTTPConfig }
type YakHttpResponse ¶
func (*YakHttpResponse) Data ¶
func (y *YakHttpResponse) Data() string
func (*YakHttpResponse) GetHeader ¶
func (y *YakHttpResponse) GetHeader(key string) string
func (*YakHttpResponse) Json ¶
func (y *YakHttpResponse) Json() interface{}
func (*YakHttpResponse) Raw ¶
func (y *YakHttpResponse) Raw() []byte
Click to show internal directories.
Click to hide internal directories.