This guide relates to changes implemented in PR 1058.
The request HTTP client was deprecated as of Feb 11th 2020. We have updated this helper library with the axios HTTP client.
In version 6.X.X, our ClientRequest
and ClientResponse
types exposed the raw interfaces from the request
module directly. In version 7.X.X, the ClientRequest
and ClientResponse
objects untethers from a specific HTTP client implementation. We have maintained the core request and response interfaces exposed in test cases and usage examples, but mask everything else.
If you are passing in request options, outside of what’s documented, to the HTTP request client, this may be a breaking change for you. Please check the RequestOptions
interface to inspect the updated options. If you rely on HTTP response data previously available, this may also be a breaking change for you. Please see the ClientResponse
object for details about what data is now exposed.
- Locate any areas in your code that utilizes request and response properties that are no longer exposed in the new interfaces.
- Update the response values to use the new
Response
object. - Update the request values to use the new options exposed in the
RequestOptions
object.