graphql / graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.
MIT License
16.06k stars 1.72k forks source link

[graphiql] show response headers in UI #3025

Open n1ru4l opened 1 year ago

n1ru4l commented 1 year ago

It would be great if there was a way to show the response headers in the GraphiQL UI. This would be great for use cases where you implement stuff like E-Tag and If-None-Match on top of GraphQL.

Screenshot 2023-02-16 at 14 09 46
acao commented 1 year ago

this has been requested many times! this was part of orta's design as well

I propose we implement this as a plugin and an extension of the plugin system, similarly to

https://github.com/graphql/graphiql/issues/2795

acao commented 1 year ago

I was also hoping this panel could have plugin tabs for operation tracing as well, and other diagnostics/metadata potentially

klippx commented 10 months ago

Petition to be able to extend this with e.g. duration (as measured from client) in case this is not available in headers.

In Apollo Studio we get this, and as you an see it is not part of headers

Response area, selecting response (default): Screenshot 2023-12-27 at 13 54 28

Response area, selecting response headers: Screenshot 2023-12-27 at 13 54 34

acao commented 9 months ago

I have plans to extend the plugin system to support this this year! However, first we need to convert the graphiql state management away from context