# IPostaSectionClient

- Kind: `interface`
- Package: [CommunityToolkit.Aspire.Posta](/reference/api/csharp/communitytoolkit.aspire.posta.md)
- Version: `13.5.0`
- Namespace: `CommunityToolkit.Aspire.Posta.Clients`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Posta/Clients/IPostaSectionClient.cs)

Common operations exposed by each Posta API section.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Posta.Clients;

public interface IPostaSectionClient
{
    // ...
}
```

## Methods

- [SendAsync(PostaEndpoint, PostaRequest?, CancellationToken)](/reference/api/csharp/communitytoolkit.aspire.posta/ipostasectionclient/methods.md#sendasync-postaendpoint-postarequest-cancellationtoken-1pfo0z1) : `Task<TResponse?>` `abstract` -- Invokes an endpoint and deserializes its JSON response.
- [SendAsync(PostaEndpoint, PostaRequest?, CancellationToken)](/reference/api/csharp/communitytoolkit.aspire.posta/ipostasectionclient/methods.md#sendasync-postaendpoint-postarequest-cancellationtoken-p41nia) : `Task<JsonDocument?>` `abstract` -- Invokes an endpoint and returns its JSON response.
- [SendStreamAsync(PostaEndpoint, PostaRequest?, CancellationToken)](/reference/api/csharp/communitytoolkit.aspire.posta/ipostasectionclient/methods.md#sendstreamasync-postaendpoint-postarequest-cancellationtoken) : [Task<PostaStreamResponse>](/reference/api/csharp/communitytoolkit.aspire.posta/postastreamresponse.md) `abstract` -- Invokes an endpoint and returns a streaming response. Disposing the result disposes the HTTP response.
