Skip to content

Add variadic RequestOption to Query and Mutate#47

Open
iheanyi wants to merge 4 commits intoshurcooL:mainfrom
iheanyi:use-custom-headers
Open

Add variadic RequestOption to Query and Mutate#47
iheanyi wants to merge 4 commits intoshurcooL:mainfrom
iheanyi:use-custom-headers

Conversation

@iheanyi
Copy link
Copy Markdown

@iheanyi iheanyi commented Oct 9, 2019

Fixes #28.

I saw various solutions in #28, especially this one: #28 (comment). I decided to take the variadic options approach because:

  1. It's backwards compatible
  2. Easy to build on top of and set other nice options that users may want to use.

I've gone ahead and included a WithRequestHeader option that users will most likely want.

@iheanyi
Copy link
Copy Markdown
Author

iheanyi commented Nov 19, 2019

@dmitshur Wanted to follow-up on this, any chance this can get a lookover?

@superbeeny
Copy link
Copy Markdown

bump

@andig
Copy link
Copy Markdown

andig commented Jul 25, 2021

Also see #73

alexandear pushed a commit to alexandear-org/graphql that referenced this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Ability to add custom headers to the request

3 participants