You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS recently released support to stream responoses, see here
Since it accepts any kind of response (streamed or not) I think this should be implementable. I am using rocket so I only looked at that part of the code, but it seems like the major change would be to return a response instead of a value and adding all relevant headers etc to that response.
The text was updated successfully, but these errors were encountered:
Alright looking more into it it is definitely possible, since rocket::Response returns AsyncRead which can be accepted as stream into the hyper:::Response. But I met my match with lifetimes and async - I for the life of me cannot figure out how to make the AsyncRead live long enough for the lambda response.
AWS recently released support to stream responoses, see here
Since it accepts any kind of response (streamed or not) I think this should be implementable. I am using rocket so I only looked at that part of the code, but it seems like the major change would be to return a response instead of a value and adding all relevant headers etc to that response.
The text was updated successfully, but these errors were encountered: