HI-FETCH
API
-
fetch(url, options)
- options
- url
- method
- query Url query
- form
- body
- headers
- cookies
- proxy https://127.0.0.1:1087
- oauth
- version Default '1.0'
- signature_method Default 'HMAC-SHA1'
- transport_method Default 'header'
- token
- token_secret
- consumer_secret
- private_key
- body_hash
- nonce
- realm
- timestamp
- auth
- user
- password
- compress Boolean
- redirect "follow" | "manual'
- follow Number
- options
-
class fetch.Client(options)
- Client.prototype.options
- Client.prototype.headers
- Client.prototype.cookieJar
- Client.prototype.proxy
- Client.prototype.oauth
- Client.prototype.getHeader(name)
- Client.prototype.setHeader(name, value)
- Client.prototype.removeHeader(name)
- Client.prototype.setCookie(cookie, uri)
- Client.prototype.getCookies(uri)
- Client.prototype.setOauth(info)
- Client.prototype.setAuth(info)
- Client.prototype.copyOptions(options)
- Client.prototype.copyHeaders()
- Client.prototype.send(url, options)
-
class fetch.Response
- Response.prototype.ok
- Response.prototype.url
- Response.prototype.body
- Response.prototype.status
- Response.prototype.statusText
- Response.prototype.headers
- Response.prototype.redirected
- Response.prototype.clone()
- Response.prototype.blob() return Promise
- Response.prototype.json() return Promise
- Response.prototype.text() return Promise
- Response.prototype.buffer() return Promise
- Response.prototype.stream()
-
class fetch.Request(url, options)
- Request.prototype.url
- Request.prototype.uri
- Request.prototype.method
- Request.prototype.body
- Request.prototype.headers
- Request.prototype.redirect
- Request.prototype.follow
- Request.prototype.compress