On Thursday 06 December 2001 11:08, Chuck Esterbrook wrote:
> On Thursday 06 December 2001 12:11 pm, Tavis Rudd wrote:
> > This brings up a question I've been meaning to ask about
> > adapters. � Do they set the HTTP response header or is that the
> > responsiblity of the AppServer, Response, etc? �I couldn't find
> > any code, where they do this, but I also couldn't find anywhere
> > that AppServer or HTTPResponse do it either. �All I found was
> > HTTPResponse.setStatus() (but I'm going from memory here ;)
> >
> > I prefer the AppServer and HTTPResponse being in charge of that
> > as it makes it easier to write things like an builtin HTTPServer.
>
> HTTPResponse is in fact the keeper of all headers until delivery
> time.
To rephrase my question, where is the fake 'Status' header set by
HTTPResponse translated into a real HTTP response code header?
> Since a raw response contains the headers in a clearly delimited
> fashion, there should be no hang ups at all writing the builtin
> http server. In fact, if I remember right, they are already in
> standard http form and ready to be copied over.
That's what I assumed they were, but then the 'Status' header
confused me when I couldn't find who was turning {'Status': '200 OK'}
into "HTTP/1.0 200 OK".
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel