[docs] Describe how to change an URL in the onRequest
method of the RequestHook
#7084
Labels
AREA: docs
An issue related to the product documentation.
TYPE: enhancement
The accepted proposal for future implementation.
What is your Scenario?
There isn't information about how to change an URL of the request in the RequestHook,
What are you suggesting?
There should be informed on how to change a request URL. It needs to change
hostname
,host
,port
,protocol
andpath
of thee.requestOptions
on values that are required for a new resource. Also, We should change the request headers depending on the new resource. Optionurl
is read-only, which means that trying to change it doesn't alter the real url.For example:
What alternatives have you considered?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: