reqwest.proxy

reqwest.proxy

reqwest.proxy

Function

Set the HTTP/HTTPS proxy used by the current request.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueStringNoNoneProxy address, for example http://127.0.0.1:7890. An empty string means no proxy is set.

Return value

TypeDescription
ReqwestReturns the current request builder clone.

Example

Notes

  • The proxy address will be submitted to reqwest for verification during send(); format errors will return a runtime error.