mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +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
|
||||
-----------------
|
||||
|
||||
Currently header parameters are not passed to the handler functions. But they can be accessed through the underlying
|
||||
``flask.request.headers`` object.
|
||||
Currently header parameters are not passed to the handler functions as parameters. But they can be accessed through the underlying
|
||||
``connexion.request.headers`` object which aliases the ``flask.request.headers`` object.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
def index():
|
||||
page_number = flask.requests.headers['Page-Number']
|
||||
page_number = connexion.request.headers['Page-Number']
|
||||
|
||||
Reference in New Issue
Block a user