Documentation ¶
Overview ¶
Package http GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Do ¶
type Do struct { task.Task // http method Method string `json:"method"` // http request url Url string `json:"url"` // http headers Header map[string]client.StringOrSlice `json:"header,omitempty"` // http query Query map[string]client.StringOrSlice `json:"query,omitempty"` // http request body RequestBody file.StringOrFile `json:"body,omitempty"` // options With DoOption `json:"with,omitempty"` // Response Response Response `json:"-" output:"response"` }
Do http request
type DoOption ¶
type DoOption struct { // header keys for result ExposeHeaders []string `json:"exposeHeaders"` }
type Fetch ¶
type Fetch struct { task.Task // http request url Url string `json:"url"` // hit by response header HitBy string `json:"hitBy,omitempty" default:"etag"` // fetched file File file.File `json:"-" output:"file"` }
Fetch http resource to local cache
Click to show internal directories.
Click to hide internal directories.