Closed FabienDehopre closed 3 years ago
I've already updated the code by moving the second argument to the option object (and removing it). However, I still have to update the documentation (README.md). I'll do it ASAP tomorrow.
@NetanelBasal I've updated the readme can you have a look and tell me if it's ok or not ?
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When you use the withCache() function in a HttpClient method, it needs to be assigned to the context option. How do you add something else to the HttpRequest context ?
Issue Number: #42
What is the new behavior?
Add a second argument to
withCache
function to pass an optional existingHttpContext
returned from another function (similar towithCache
). If the existingHttpContext
has been provided, the function will use it; otherwise, the function will create a newHttpContext
.Does this PR introduce a breaking change?
Other information