strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Expose common request on extensions' context

Open patrick91 opened this issue 1 year ago • 2 comments

The Stellate extension for Strawberry needs some information from the request:

https://github.com/StellateHQ/stellate-strawberry/blob/9a2305789b1d9cd8c3ce8326e194635bb73fffbe/stellate_strawberry/init.py#L66-L82

but I'm not totally sure it will work with all integrations, so I was wondering if we could provide a request like object that has all these information, but with one unified API (we already have it in the http codebase, so it should be easy to do)

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

patrick91 avatar Apr 06 '24 07:04 patrick91

Just to be sure, you're referring to the requests HTTP method and the requests HTTP headers, correct? Everything else seems to be take from the execution context, execution result, etc.

DoctorJohn avatar Jul 04 '24 21:07 DoctorJohn

yup!

patrick91 avatar Jul 04 '24 21:07 patrick91