uhm, I am obviously missing something....

def test():
    response.headers['custom'] = 'miao'
    response.status = 404
    return 'hello'


GET http://127.0.0.1:8000/ciao/default/test

Status: 200 OK
Body: hello

Set-Cookie: session_id_ciao=127-0-0-1-c8d0e6d1-
fa92-4cfe-9720-9cf4dc3cddc2; Path=/
Expires: Thu, 05 Aug 2010 14:39:23 GMT
custom: miao
Pragma: no-cache
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Content-Type: text/html; charset=utf-8
Date: Thu, 05 Aug 2010 14:39:23 GMT
Server: Rocket 1.0.6 Python/2.6.1
Content-Length: 5
Connection: keep-alive

Reply via email to