Documentation ¶
Index ¶
- Variables
- func Req(ctx context.Context, method string, addr string) dscope.Scope
- type Addr
- type Content
- type Cookie
- type Def
- func (Def) Client(timeout Timeout, cookieJar http.CookieJar, transport *http.Transport) *http.Client
- func (Def) Content(getResp GetResponse, deadline RetryDeadline) (content Content, bs []byte, resp *http.Response)
- func (Def) Cookie() Cookie
- func (Def) CookieJar() http.CookieJar
- func (Def) GoqueryDocument(content []byte) (doc *goquery.Document)
- func (Def) Headers() Headers
- func (Def) MaxRetry() MaxRetry
- func (Def) Request(method Method, addr Addr, newReqBody NewRequestBody, userAgent UserAgent, ...) NewRequest
- func (Def) RequestBody() NewRequestBody
- func (Def) Response(client *http.Client, newReq NewRequest, deadline RetryDeadline, ...) GetResponse
- func (Def) RetryDeadline(d RetryDuration) RetryDeadline
- func (Def) RetryDuration() RetryDuration
- func (Def) StringContent(content []byte) string
- func (Def) Timeout() Timeout
- func (Def) Transport() *http.Transport
- func (Def) UserAgent() UserAgent
- type GetResponse
- type Headers
- type MaxRetry
- type Method
- type NewRequest
- type NewRequestBody
- type RetryDeadline
- type RetryDuration
- type Timeout
- type UserAgent
Constants ¶
This section is empty.
Variables ¶
View Source
var Defs = dscope.Methods(new(Def))
Functions ¶
Types ¶
type Def ¶
type Def struct{}
func (Def) Content ¶
func (Def) Content( getResp GetResponse, deadline RetryDeadline, ) ( content Content, bs []byte, resp *http.Response, )
func (Def) GoqueryDocument ¶
func (Def) Request ¶
func (Def) Request( method Method, addr Addr, newReqBody NewRequestBody, userAgent UserAgent, cookie Cookie, headers Headers, ctx context.Context, ) NewRequest
func (Def) RequestBody ¶
func (Def) RequestBody() NewRequestBody
func (Def) Response ¶
func (Def) Response( client *http.Client, newReq NewRequest, deadline RetryDeadline, maxRetry MaxRetry, ) GetResponse
func (Def) RetryDeadline ¶
func (Def) RetryDeadline( d RetryDuration, ) RetryDeadline
func (Def) RetryDuration ¶
func (Def) RetryDuration() RetryDuration
func (Def) StringContent ¶
type GetResponse ¶
type NewRequest ¶
type NewRequestBody ¶
type RetryDeadline ¶
type RetryDuration ¶
Click to show internal directories.
Click to hide internal directories.