jasonkuhrt / graphql-request

Minimal GraphQL client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add request headers to a client error in a response middleware

sofly opened this issue · comments

Perceived Problem

There is not possibility to get request headers from a client error in a response middleware.

Ideas / Proposed Solution(s)

It is available in the second parameter.

CleanShot 2024-04-29 at 10 21 29@2x

@jasonkuhrt Hello. Thanks for the help, should I create an issue about types?
Screenshot 2024-04-29 at 17 20 36

Yeah sure, be precise or even better a PR :)

Thanks!