-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add ClientOptions to support withCredentials and request debugging #47
Conversation
I'm happy-ish with this. If not, then this is certainly fine. |
@NorfairKing You'd only want |
@imalsogreg Thanks so much for tackling this! I like your approach. I have one more hope for this feature: I'd like to be able to arbitrarily modify the request before it gets sent (for example, setting custom headers). Would it be possible to instead provide some arbitrary |
@3noch Thanks for the clarification. @imalsogreg Thanks for acting so quickly. |
Latest push removes all the fields from I was considering setting I'll merge this pretty soon, unless you have some other preferences? |
@imalsogreg This is great! Thanks for your hard work on this! |
I think you're right not to do anything fancy with |
Add a new
ClientOptions
type andclientWithOpts
functions.The options support user's ability to set the
withCredentials
bit in xhr requests, and to choose a request debugging function that runs inJSM
.Addresses #46 and #45
RFC @3noch and @NorfairKing what do you think?