-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move code handling upstream URL requests to its own file
This allows for reuse later with other endpoints. DELETE: Extract the logic of creating multiple DELETE requests in deleteResource to its own function. GET: Extract the call to proxyResponseBodyFromUpstream in sendSubresource to its own function. PUT: Extract the logic of creating a PUT request in receiveSubresource to its own function. This requires a new type, upstreamUrlExtractor, to be used since the URL for these requests are dependent on the method and headers, which are defined in the new function.
- Loading branch information
Showing
2 changed files
with
373 additions
and
312 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
Oops, something went wrong.