http-client
Advanced tools
Changelog
[v4.3.0]
Sep 30, 2016
onResponse
to recv
and enhanceFetch
to enableRecv
. This makes the association more clear.fetch
export. Use the global fetch
function directly instead.debug
middleware, deprecated requestInfo
.Changelog
[v4.2.0]
Sep 29, 2016
parse(parser)
middleware that puts the result of the parse in response.body
parseJSON
, use parse('json')
insteadparseText
, use parse('text')
insteadChangelog
[v4.1.0]
Jun 16, 2016
Content-Length
header for non-ASCII content bodies (see [#8])Changelog
[v4.0.1]
May 18, 2016
handleResponse
to onResponse
Changelog
[v4.0.0-0]
Apr 27, 2016
handleResponse
runs response handlers top to bottom, just like Expressoptions.responseHandlers
array to specify an array of transforms to
run on the response after it is receivedenhanceFetch
to top-level exports for adding options.responseHandlers
support to an arbitrary fetch
functionoptions.fetch
to fetch functions created using createFetch
so users
can swap out usage of the "global" fetch function, which makes testing easierfetch
method signature