Skip to content

Split out a RequestOptions function. #7295

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brendandburns
Copy link
Contributor

@brendandburns brendandburns commented Jan 2, 2018

Description of the PR

Split each API method in half to add a public facing _operation_RequestOptions() method. The purpose of this method is to queue everything up ready to execute, but not actually execute it.

This allows the user to intercept the request, make modifications, and execute it on their own. This is useful (for example) when you want to use a WebSockets protocol that nonetheless re-uses all of the auth and everything else from a RESTful API, or when a RESTful API has some methods that return raw streams of data instead of JSON.

Typescript technical committee:
@TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx

@wing328
Copy link
Contributor

wing328 commented Jan 11, 2018

@brendandburns thanks for the PR. From what I can tell, it's not a breaking change.

If no concern from @TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx, I'll merge it into 2.4.0 this weekend.

@TiFu
Copy link
Contributor

TiFu commented Jan 11, 2018

I can't seem to find the change in this PR which removes the ObjectSerializer from api.ts (the diff which is hidden by default because it's too big).
Another issue is that the version in VERSION changed from 2.3.0 to 2.2.3.

@wing328 Do you know to which PR these changes are related or if the changes aren't an issue?

@wing328
Copy link
Contributor

wing328 commented Jan 11, 2018

Looks like @brendandburns is not using the latest master when creating the PR as all the localVar variable prefix has been removed.

Please rebase on the latest master and update the TS node samples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants