Module Expr Str ImportFrom alias ImportFrom alias Import alias Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr decorator_list
N/A N/A Middleware that ensures x-compute-request-id

Using this middleware provides a convenient way to attach the
x-compute-request-id to only v2 responses. Previously, this header was set in
api/openstack/wsgi.py

Responses for v2.1 API are taken care of by the request_id middleware provided
in oslo.
 oslo_context context oslo_middleware base N/A webob.dec N/A ENV_REQUEST_ID openstack.request_id N/A HTTP_RESP_HEADER_REQUEST_ID x-compute-request-id ComputeReqIdMiddleware N/A N/A base Middleware N/A __call__ N/A N/A self req N/A N/A N/A req_id N/A N/A context generate_request_id N/A N/A N/A req environ N/A ENV_REQUEST_ID req_id N/A response N/A N/A req get_response N/A self application N/A N/A HTTP_RESP_HEADER_REQUEST_ID N/A response headers N/A N/A N/A N/A N/A response headers add HTTP_RESP_HEADER_REQUEST_ID req_id N/A response N/A N/A N/A webob dec wsgify N/A