Replies: 2 comments
-
You can set the header manually by returning a HttpResponse. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@yawkat If I return a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am streaming CSV data from a Controller method - How do I set the
Content-Disposition: attachment
header so that browsers download it instead of display it?I see that for sending 'Files', this is done automatically, but I don't intend to use either of the two return types shown in that example, my method signature looks like this:
Isn't there a way to just annotate the content disposition? It seems weird to me that it currently seems tied to specific response types - In general, any response of any type might be inline or attachment. It's an independent concern.
Thank you in advance for the help.
--ee
Beta Was this translation helpful? Give feedback.
All reactions