mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-10 04:19:37 +00:00
Update doc for header to use headers object from connexion.
This commit is contained in:
@@ -92,10 +92,10 @@ supports collection formats "pipes" and "csv". The default format is "csv".
|
|||||||
Header Parameters
|
Header Parameters
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Currently header parameters are not passed to the handler functions. But they can be accessed through the underlying
|
Currently header parameters are not passed to the handler functions as parameters. But they can be accessed through the underlying
|
||||||
``flask.request.headers`` object.
|
``connexion.request.headers`` object which aliases the ``flask.request.headers`` object.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def index():
|
def index():
|
||||||
page_number = flask.requests.headers['Page-Number']
|
page_number = connexion.request.headers['Page-Number']
|
||||||
|
|||||||
Reference in New Issue
Block a user