Closed II11II closed 3 years ago
Thank you for opening the issue, I will get to it ASAP🔥
@CodingAleCR Thank you)
I would like to ask why custom models f.e. RequestData and ResponseData
are created?
May they be replaced by default http
library models, Request and Respone
respectively?
They are needed in order to provide mutable versions of Request
and Response
classes on http
. For example, query parameters are not mutable in Request
, and thus you are not able to intercept those.
@all-contributors add @II11II for tests and code
@CodingAleCR
I've put up a pull request to add @II11II! :tada:
In mapper method
Response toHttpResponse()
and factoryfactory ResponseData.fromHttpResponse(Response response)
, mapping BaseRequest is missing. P.s. inResponse toHttpResponse()
method maps to Request only method andUri
. But headers and bodies are missing