-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The next major version of gofer #49
Comments
cc @dbushong @ageitgey There's now an - afaict - complete implementation on the |
+1 David Bushong On Mon, Apr 18, 2016 at 5:24 PM, Jan Olaf Krems notifications@github.com
|
This is now set up as the |
Current Status
Gofer.fetch(uri)
,Gofer.fetch(uri, options)
,Gofer.fetch(uri, options, callback)
are supported.Gofer
is the default exportconfig
has global-, service-, and endpoint defaultsfetch
returnsundefined
.Promise<Stream>
and pipe it.baseUrl
contains a query string.baseUrl
is just an option, there's no default option mapper.clearOptionMappers
doesn't exist.(error, data, response)
.gofer/hub
.clientName
andclientVersion
.maxSockets
setting for that API.options.body
: It's possible to pass a readable stream.options.body
: It's possible to pass a buffer.options.body
: It's possible to pass a string.options.method
, uppercase HTTP method.options.qs
: Nested query string parametersoptions.json
: Object that will be serialized to JSON.options.form
: Object that will be serialized viaqs
to a form encoded body.options.auth
(string): Will be used to generate a basic auth header.options.auth
(object):username
/password
pair used to generate a basic auth header.options.connectTimeout
: Determines how long to wait for a successful TCP connection after acquiring a socket.options.timeout
: Determines how long to wait for response headers. Also controls the socket read timeout.options.pathParams
: Object with params that will be inserted into{placeholder}
s in the URL.options.maxSockets
: How many connections/sockets in parallel are allowed.options.rejectUnauthorized
: Same as node's ownrejectUnauthorized
.options.headers
: Works just like node's ownheaders
option.fetch
is availableResources
The text was updated successfully, but these errors were encountered: