]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add hook to create a context from the headers
authorKevin Benton <blak111@gmail.com>
Thu, 11 Jun 2015 10:46:22 +0000 (03:46 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Sat, 1 Aug 2015 18:55:20 +0000 (18:55 +0000)
commit40b1c798546dcd57509e25339a449de9047abc0f
tree4bc4e712b0c2904b618ca5d11129e865a3a1975b
parent72c40a5bb7d6f659ca8ef8ed785f889383795462
Add hook to create a context from the headers

Adds a hook to parse the HTTP headers and turn them into a
Neutron context. The context is then attached to the thread-local
request object so future hooks and the controller can operate on it.

Partially-Implements: blueprint wsgi-pecan-switch
Change-Id: I982f7dc7f736c2b3539dffcf81c4ad141434b68f
neutron/newapi/app.py
neutron/newapi/hooks/__init__.py
neutron/newapi/hooks/context.py [new file with mode: 0644]
neutron/tests/functional/newapi/test_functional.py