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
Hi
I see that onData is defined in HttpResponse class which seem to get called to stream the body of the request. Please confirm if this is correct?
Based on some of the tests I did it looks like the route handler is called first, followed by onData (maybe multiple times). Can I assume that this is the case always - for different http methods/routes?
Also please confirm that I can use the content-length header to check if there is a body or not in the request or is there a built-in method that I can use?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I see that onData is defined in HttpResponse class which seem to get called to stream the body of the request. Please confirm if this is correct?
Based on some of the tests I did it looks like the route handler is called first, followed by onData (maybe multiple times). Can I assume that this is the case always - for different http methods/routes?
Also please confirm that I can use the content-length header to check if there is a body or not in the request or is there a built-in method that I can use?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions