# HttpCommandExportOptions

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

ATS-friendly configuration for resource HTTP commands.

## Definition

```go
type HttpCommandExportOptions struct {
    CommandOptions      *CommandOptions       `json:"CommandOptions"`
    Description         *string               `json:"Description"`
    ConfirmationMessage *string               `json:"ConfirmationMessage"`
    IconName            *string               `json:"IconName"`
    IconVariant         *IconVariant          `json:"IconVariant"`
    IsHighlighted       bool                  `json:"IsHighlighted"`
    CommandName         *string               `json:"CommandName"`
    EndpointName        *string               `json:"EndpointName"`
    MethodName          *string               `json:"MethodName"`
    PrepareRequest      func(...any) any      `json:"PrepareRequest"`
    ResultMode          HttpCommandResultMode `json:"ResultMode"`
}
```

## Fields

- `CommandOptions`: [`*CommandOptions`](/reference/api/go/aspire.hosting/commandoptions.md) `optional` -- Optional command configuration.
- `Description`: `*string` -- Optional description of the command, to be shown in the UI.
- `ConfirmationMessage`: `*string` -- When a confirmation message is specified, the UI will prompt with an OK/Cancel dialog before starting the command.
- `IconName`: `*string` -- The icon name for the command.
- `IconVariant`: [`*IconVariant`](/reference/api/go/aspire.hosting/iconvariant.md) `optional` -- The icon variant.
- `IsHighlighted`: `bool` -- A flag indicating whether the command is highlighted in the UI.
- `CommandName`: `*string` -- Gets or sets the command name.
- `EndpointName`: `*string` -- Gets or sets the HTTP endpoint name to send the request to when the command is invoked.
- `MethodName`: `*string` -- Gets or sets the HTTP method name to use when sending the request.
- `PrepareRequest`: `func(...any) any` `optional` `callback` -- Gets or sets a callback to be invoked to configure the request before it is sent.
- `ResultMode`: [`HttpCommandResultMode`](/reference/api/go/aspire.hosting/httpcommandresultmode.md) -- Gets or sets how the HTTP response content should be returned as command result data.
