graphql-python / gql

A GraphQL client in Python

Home Page:https://gql.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help

akhilputhiry opened this issue · comments

Hi Folks

Sorry for spamming github issues

I need to retrieve the response headers after executing a gql query
My code looks like the following

transport = RequestsHTTPTransport(url=self.url, headers=self.headers, retries=3)
client = Client(transport=transport, fetch_schema_from_transport=True)
response = client.execute()

currently I am getting the data in response
I want to access the x-request-id send in the response and use it to log

Could some one please point me in the right direction

The response headers are in transport.response_headers.