File: headers.rst

package info (click to toggle)
python-gql 3.6.0~b4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,824 kB
  • sloc: python: 20,567; makefile: 52
file content (10 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
HTTP Headers
============

If you want to add additional http headers for your connection, you can specify these in your transport:

.. code-block:: python

    transport = AIOHTTPTransport(url='YOUR_URL', headers={'Authorization': 'token'})

After the connection, the latest response headers can be found in :code:`transport.response_headers`