# HttpCommandPrepareRequestContext

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.5.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/e076d8e427cb3afb528dbd605acd74c3aea69f94)

Provides context for HTTP command prepare-request callbacks in polyglot AppHosts.

## Definition

```typescript
interface HttpCommandPrepareRequestContext {
  readonly arguments: InteractionInputCollection;
  readonly cancellationToken: cancellationToken;
  readonly endpoint: EndpointReference;
  readonly resourceName: string;
}
```

## Properties

- `arguments`: [InteractionInputCollection](/reference/api/typescript/aspire.hosting/interactioninputcollection.md) `get` -- Gets the invocation arguments supplied by the client when the command is executed.
- `cancellationToken`: `cancellationToken` `get` -- The cancellation token.
- `endpoint`: [EndpointReference](/reference/api/typescript/aspire.hosting/endpointreference.md) `get` -- The endpoint the request is targeting.
- `resourceName`: `string` `get` -- The name of the resource the command was configured on.
