HttpClient.request

HttpResponse request(const HttpRequest request)

Performs an HTTP request and returns the full response.

Parameters

requestThe request to perform; auto ref accepts both lvalues and rvalues, so fluent builders (e.g. req.withHeader(...)) can be passed directly.

Returns

The full response.