pub fn send_request(request: Request) -> Result<Response, HttpError>
Expand description
Sends an outbound HTTP request.
In order for this function to succeed, a plugin’s configuration must explicitly declare a permission grant for the host being requested. This function will panic if permission has not been granted.
§Arguments
request
- The HTTP request to send.