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

Internal header metadata to detect binary endpoints #1639

Closed
JeanJPNM opened this issue Jun 4, 2021 · 1 comment
Closed

Internal header metadata to detect binary endpoints #1639

JeanJPNM opened this issue Jun 4, 2021 · 1 comment

Comments

@JeanJPNM
Copy link
Contributor

JeanJPNM commented Jun 4, 2021

Is your feature request related to a problem? Please describe.
#1382 uses the content-type header to check whether the response body is json or binary data, but it doesn't cover all the types that can retrieve binary data, such as image/png and audio/mpeg. Storing metadata inside a custom header or a separate object could make this process much simpler and reliable.

Describe the solution you'd like
A dedicated object to hold internal metadata about the response (such as the type of the body) that is discarded before the response is sent. Such object could be cotained inside a custom header (like x-svelte-meta)or could be an independent entity;

Describe alternatives you've considered
I haven't considered anything else.

How important is this feature to you?
It has a mid level priority for me.

@JeanJPNM
Copy link
Contributor Author

JeanJPNM commented Jun 13, 2021

Closing the issue because it is wrong due to my error while analyzing the code, this issue is irrelevant to the project

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