Skip to content

Transports

Compare
Choose a tag to compare
@blakeembrey blakeembrey released this 11 Jul 01:38
· 132 commits to master since this release

Changed

  • Aborts are no longer be emitted as errors into the response stream (08e68a8)
  • Persist the original cookie header and append new cookies headers during redirect (avoids wiping the header) (898f3b6)
  • Add getAll method for retrieving all headers by a key, while get will always return the first header (c180f08#diff-49b580f166912fd1e84bdacd4857fedaR179)
  • Allow the response class of a transport response to be changed (c180f08)
  • Moved response parsing and transport options into the transport layer - create a transport using createTransport({ type: string }) (bcc9e29)
  • Tweak progress tracker to persist lengths (previous they were reset to known lengths when the response finished) (124d0bd)
  • Removed the popsicle.browser export (you can use process.browser or require('is-browser') easily enough) (c7af7e4)
  • Removed process.nextTick for starting the request, rely on nextTick behaviour of promises instead (saves 400kB) (8a0fba6)

Fixed

  • Getting cookies are handled across different domains (via redirects) better (898f3b6)

Added

  • Handle "JSON protection prefix" when parsing JSON responses (4cd1e2a)
  • Implement a max buffer size for node response bodies (5e2f4e2)