-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BaseService): support stream=True in BaseService.send()
Fixes: arf/planning-sdk-squad/issues/901 This change allows generated operation code to pass 'stream=True' to the BaseService.send() method, which will in turn pass it on to the underlying requests.request() method. The net result is that the response body (even if it is a JSON object) will be "streamed", which means it will be made available via the requests.Response object rather than consumed and set on the DetailedResponse object. To access the streamed response, simply retrieve the requests.Response object by calling DetailedResponse.get_result(), then use the "iter_content" method on the returned requests.Response instance.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters