Skip to content

Expose URL response in HTTPNetworkTransportGraphQLErrorDelegate #1116

@erudel

Description

@erudel

Hi,

I am trying to implement a delegate to intercept responses that contain a GraphQL error and it seems that HTTPNetworkTransportGraphQLErrorDelegate would be the perfect place to do that.
In my particular use case, it would be also helpful to have access to the headers from the (HTTP) response to perform some additional logging. However, I noticed that the response is not exposed in the delegate method and instead other higher level objects are passed.

Do you think it would be reasonable to also expose the response? Or is there another way to get this information?

If you think this makes sense, I would be happy to start working on a PR to address this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions