- Possibility to set header to the response directly from the resolver using
set_response_headers
method.
from tartiflette_aiohttp import set_response_headers
@Resolver("Query.X")
async def resolver_x(parent_result, args, ctx, info):
# do things
set_response_headers({"Header": "Value", "AnotherHeader": "AnotherValue"})
return result
Note that this feature uses ContextVar and will only works for python 3.7.1 and later.
- pytest updated to 5.3.4
- pylint updated to 2.4.4