File: requests.rst

package info (click to toggle)
python-gql 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,900 kB
  • sloc: python: 21,677; makefile: 54
file content (13 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
.. _requests_transport:

RequestsHTTPTransport
=====================

The RequestsHTTPTransport is a sync transport using the `requests`_ library
and allows you to send GraphQL queries using the HTTP protocol.

Reference: :class:`gql.transport.requests.RequestsHTTPTransport`

.. literalinclude:: ../code_examples/requests_sync.py

.. _requests: https://requests.readthedocs.io