[Twisted-Python] twisted.web2's equivalent to setHeader?
inhahe at gmail.com
Thu Apr 24 04:46:09 EDT 2008
It took some searching, but I found something that states directly that
Twisted doesn't support pipelining (
". Twisted doesn't support HTTP/1.1 pipelining and neither does
I think I read elsewhere that web2 does support pipelining, but I'm not sure
if FireFox is using pipelining with twisted.web2; it uses heuristics to
determine whether to use pipelining or not (provided you enabled pipelining)
based on the server type. Wikipedia says most servers support pipelining so
I assume Apache does, so I was thinking I could make web2 pose as an Apache
server by doing setHeader("Server", "Apache/2.2.8(Unix)"), but I get this
exceptions.AttributeError: 'Request' object has no attribute
so how do I set a header using web2?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python