Added progress capturing support, data rate limiting and aborting the response stream in node.js env;#4772
Closed
DigitalBrainJS wants to merge 15 commits intoaxios:v1.xfrom
Closed
Added progress capturing support, data rate limiting and aborting the response stream in node.js env;#4772DigitalBrainJS wants to merge 15 commits intoaxios:v1.xfrom
DigitalBrainJS wants to merge 15 commits intoaxios:v1.xfrom
Conversation
…osHeaders � Conflicts: � lib/core/dispatchRequest.js
Refactored accessor building routine; Refactored default transforms; Removed `normalizeHeaderName` helper;
Added missed `has` accessor to TS types;
Added progress capturing ability for node.js environment; Added `maxRate` option to limit the data rate in node.js environment; Refactored event handled by `onUploadProgress` && `onDownloadProgress` listeners in browser environment; Added progress & data rate tests for the http adapter; Added response stream aborting test; Added a manual progress capture test for the browser; Updated TS types; Added TS tests; Refactored request abort logic for the http adapter; Added ability to abort the response stream;
� Conflicts: � lib/core/transformData.js � lib/defaults/index.js � lib/helpers/parseHeaders.js � lib/utils.js
986e0bb to
df579eb
Compare
dae1a46 to
74969be
Compare
Fixed CancelError emitting in streams;
…mption; Added throwing an error if the request stream was silently destroying (without error) Refers to axios#3966;
e75744e to
7f37fac
Compare
…request; Fixed tests;
7f37fac to
77012c3
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(This PR is based on #4753)
maxRateoption has been added to limit the request & response data rate.Accept-Encoding:gzip, deflate, gzip, brheader