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

Why is the headers attribute of InternalAxiosRequestConfig mandatory? #6297

Open
yangwwwping opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@yangwwwping
Copy link

Describe the issue

The headers attribute in AxiosRequestConfig is optional, and InternalAxiosRequestConfig inherits from AxiosRequestConfig, but its headers attribute is required.

The InternalAxiosRequestConfig interface is inherited when encapsulating axios, but its headers attribute is required, resulting in new AxiosHeaders() being assigned to it every time it is used.

Why is it designed?

Example Code

No response

Expected behavior

No response

Axios Version

1.3.4

Adapter Version

No response

Browser

No response

Browser Version

No response

Node.js Version

No response

OS

No response

Additional Library Versions

No response

Additional context/Screenshots

No response

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

1 participant