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
Content-Type detection #567
Comments
I don't know if it would bring substantial code improvements over the above code, but it would avoid having to figure out the various Content-Type strings |
How common is it to not know upfront what type you will be receiving? What is the use-case for such a thing? |
Not very. This specific scenario could be because it's a user-provided API endpoint. In reality APIs can also return "the wrong type", as seen in #375 So for example |
I'm manually doing content detection:
Would it make sense to have an
.auto()
parser that deals with the content type automatically? JSON, FormData, Blob, etc. I think that's what Axios does for example (but it returnsunknown
as a type)The text was updated successfully, but these errors were encountered: