-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: RequestBuilder changes to support JSON streaming feature
Fixes arf/planning-sdk-squad#901 The RequestBuilder.bodyContent() method is modified to no longer use the contentType parameter to determine which one of the other three input parameters should be used to create the request body. Instead, we now use the first non-null value using the order 'jsonContent', 'jsonPatchContent', then 'nonJsonContent'. This change is necessary for us to implement the JSON streaming feature, where the SDK user might serialize the JSON content himself and pass it in as a String or InputStream while also using a contentType that would otherwise indicate a JSON body.
- Loading branch information
Showing
2 changed files
with
87 additions
and
21 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