Closed ByQwert closed 1 year ago
+1
withUpdatedHeader() doesn't create the header either.
There should be a way for all the withUpdated... functions to add the thing if it doesn't exist, maybe by passing a "createIfNotExist" flag ?
We will update the javadoc, it is incorrect.
We will be adding 2 new methods to request to accommodate this requirement.
withHeader() and withParameter()
these methods will do the add or update logic (and are inline with the other methods that do the same.. withMethod, withService etc)
Hello,
Seems like withUpdatedParameters() method doesn't work as described in the documentation. Namely it doesn't add a new parameter If a parameter doesn't exist in the request.
The following code used during the test: