Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

HttpCommandResultMode

Enumnet10.0
📦 Aspire.Hosting v13.5.4
Specifies how an HTTP command should surface the HTTP response body as command result data.
namespace Aspire.Hosting.ApplicationModel;
public enum HttpCommandResultMode
None= 0
Do not capture the HTTP response body as command result data.
Auto= 1
Infer the command result format from the HTTP response content type.
Json= 2
Return the HTTP response body as JSON command result data.
Text= 3
Return the HTTP response body as plain text command result data.