[BlueBream] getting request http headers ?!
Marius Gedminas
marius at gedmin.as
Sat Nov 16 11:12:58 CET 2013
On Sat, Nov 16, 2013 at 07:14:54AM +0100, Tamer Higazi wrote:
> Hi people!
>
> Any ideas how to get the http headers of a request object ?!
AFAICT the only way is
[(k, v) for k, v in request.environment.items() if k.startswith('HTTP_')]
Marius Gedminas
--
I saw `cout' being shifted "Hello world" times to the left and stopped right
there!!
-- Steve Gonedes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.zope.org/pipermail/bluebream/attachments/20131116/55883412/attachment.sig>
More information about the bluebream
mailing list