Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 554 Bytes

1.2.0.md

File metadata and controls

22 lines (15 loc) · 554 Bytes

[1.2.0] - 2020-01-29

Added

  • 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.

Changed

  • pytest updated to 5.3.4
  • pylint updated to 2.4.4