# HttpCommandResultMode

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

Specifies how an HTTP command should surface the HTTP response body as command result data.

## Definition

```go
type HttpCommandResultMode string

const (
    HttpCommandResultModeNone HttpCommandResultMode = "None"
    HttpCommandResultModeAuto HttpCommandResultMode = "Auto"
    HttpCommandResultModeJson HttpCommandResultMode = "Json"
    HttpCommandResultModeText HttpCommandResultMode = "Text"
)
```

## Values

- `HttpCommandResultModeNone` = `"None"` -- Do not capture the HTTP response body as command result data.
- `HttpCommandResultModeAuto` = `"Auto"` -- Infer the command result format from the HTTP response content type.
- `HttpCommandResultModeJson` = `"Json"` -- Return the HTTP response body as JSON command result data.
- `HttpCommandResultModeText` = `"Text"` -- Return the HTTP response body as plain text command result data.
