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
It's kind of weird that there are currently three potential ways of
returning a response:
1) return it from #responseForContext:/#handleRequest:
2) signal a WAResponseNotification
3) store it in WARequestContext's response instvar (this instvar is not
current accessed anywhere but the response is stored there)
We should ideally only be using one? Can we remove the instvar?
The response *stream* needs to be passed in the request context when using
a streaming server but this could be a separate subclass of
WARequestContext for streaming servers. This would actually be cleaner
because the request contexts could implement #newResponse or something so
that you would get a StreamingResponse instead of a Response for a
streaming server. Currently, WASessionContinuation>>newResponse has to
check whether #responseStream is nil.
Original issue reported on code.google.com by jfitz...@gmail.com on 9 Nov 2008 at 8:10
The text was updated successfully, but these errors were encountered:
This is fixed by the Response refactoring. A Response is now stored in the
RequestContext by the ServerAdaptor and RequestHandlers are expected to modify
that
response. When the request handling finishes or a handler signal a
ResponseNotification, the Response is taken out of the RequestContext and sent
to the
browser.
Original comment by jfitz...@gmail.com on 31 Jan 2009 at 12:29
Original issue reported on code.google.com by
jfitz...@gmail.com
on 9 Nov 2008 at 8:10The text was updated successfully, but these errors were encountered: