Displaying 1 result from an estimated 1 matches for "clienthandler".
2007 Dec 03
1
Originating Client Request
...ng,*/*;q=0.5
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Cookie: _dk_session_id=5d1bb099d2a1ba28f06a0bd60e091e3d
Connection: keep-alive
Host: localhost:8000
...this represents the correct raw originating headers...
When I try implementing the same thing using a Mongrel handler...
class ClientHandler < Mongrel::HttpHandler
def process(request, response)
response.start(200) do |head, out|
head["Content-Type"] = "text/plain"
out.write request.params
end
end
end
... I get the CGI headers (request.body is empty, is that correct?) ......