Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customizable logic for preparing requests, parsing responses #13

Open
ariebovenberg opened this issue Oct 26, 2018 · 0 comments
Open

customizable logic for preparing requests, parsing responses #13

ariebovenberg opened this issue Oct 26, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@ariebovenberg
Copy link
Owner

encountered in #10

a.k.a. "middleware". Currently request preparation and response handling is implemented somewhat generally. However, most GraphQL servers provide some extra logic.

It should be possible for users to specify their own logic for this. For example:

  • Adding specific headers to requests
  • non-json serialization methods
  • custom HTTP status code handling
  • custom error handling

A quick solution would be to allow some kind of middleware= parameter in execute(). However, some thought needs to go into this to ensure the API is flexible enough.

@ariebovenberg ariebovenberg added the enhancement New feature or request label Oct 26, 2018
@ariebovenberg ariebovenberg self-assigned this Nov 20, 2018
@ariebovenberg ariebovenberg removed their assignment Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant