Documentation ¶
Index ¶
- type OAuthToken
- type Request
- func (t Request) Authorization(authHeader string) *Request
- func (t Request) Body(data []byte, mime string) *Request
- func (t Request) Client(c *http.Client) *Request
- func (t Request) Context(ctx context.Context) *Request
- func (t Request) Download(name string) error
- func (t Request) Err() error
- func (t Request) Form(data url.Values) *Request
- func (t Request) Header(key string, vs ...interface{}) *Request
- func (t Request) JSON(v interface{}) *Request
- func (t Request) Limit(l *rate.Limiter) *Request
- func (t Request) Open() (fs.File, error)
- func (t Request) Query(key string, vs ...interface{}) *Request
- func (t Request) Read() ([]byte, error)
- func (t Request) ReadJSON(v interface{}) error
- func (t Request) ReadString() (string, error)
- func (t Request) ReadXML(v interface{}) error
- func (t Request) Stat() (os.FileInfo, error)
- func (t Request) User(u *url.Userinfo) *Request
- func (t Request) UserAgent(ua string) *Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthToken ¶ added in v0.1.1
type OAuthToken struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` Scope string `json:"scope"` }
func (OAuthToken) Header ¶ added in v0.1.1
func (t OAuthToken) Header() (string, error)
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (Request) Authorization ¶
func (Request) ReadString ¶
Click to show internal directories.
Click to hide internal directories.