WithTimeout

IRequest WithTimeout(TimeSpan span);

Used to specify a timeout on the HttpClient within the Request. In addition, there is an extension method that specifies that there should be no timeout. The method can be found on the extension methods page here.

Example

await new Request()
    .WithTimeout(new TimeSpan(10000))
    ...
    .Done();

Back to Request