# IDurableHttpClient.SendAsync(Func&lt;HttpRequestMessage&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.idurablehttpclient/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.idurablehttpclient/methods/)

```csharp
public abstract DurableTask<DurableHttpResponse> SendAsync(Func<HttpRequestMessage> createRequest)
```

Sends the request which `createRequest` creates, as a step of the calling task.

### Parameters

- `createRequest` (`Func<HttpRequestMessage>`): Creates the request; it runs for each attempt of the step.

### Returns

A durable task which returns the recorded response, whichever its status code.
