Skip to content
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

Request to add a function #298

Closed
1 task
Rasool-deldar opened this issue Sep 21, 2023 · 1 comment
Closed
1 task

Request to add a function #298

Rasool-deldar opened this issue Sep 21, 2023 · 1 comment

Comments

@Rasool-deldar
Copy link

Describe the feature

Please add the OnDownloadProgress and OnUploadProgress functions that are in the axios-http package to your package.
Also add the following objects.

// maxContentLength defines the max size of the http response content in bytes allowed in node.js
maxContentLength: 2000,

// maxBodyLength (Node only option) defines the max size of the http request content in bytes allowed
maxBodyLength: 2000,

// validateStatus defines whether to resolve or reject the promise for a given
// HTTP response status code. If validateStatus returns true (or is set to null
// or undefined), the promise will be resolved; otherwise, the promise will be
// rejected.
validateStatus: function (status) {
return status >= 200 && status < 300; // default
},

// maxRedirects defines the maximum number of redirects to follow in node.js.
// If set to 0, no redirects will be followed.
maxRedirects: 5, // default

axios-http link:
https://axios-http.com/docs/req_config

Additional information

  • Would you be willing to help implement this feature?
@pi0
Copy link
Member

pi0 commented Sep 21, 2023

Thanks for the issue and feature request. Let's track it via #45 👍🏼

@pi0 pi0 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants