Share via


IHttpResponseFeature.ReasonPhrase Property

Definition

Gets or sets the reason-phrase as defined in RFC 9112 Section 4. Note this field is no longer supported by HTTP/2.

public:
 property System::String ^ ReasonPhrase { System::String ^ get(); void set(System::String ^ value); };
public string ReasonPhrase { get; set; }
public string? ReasonPhrase { get; set; }
member this.ReasonPhrase : string with get, set
Public Property ReasonPhrase As String

Property Value

Remarks

Must contain only ASCII characters: HTAB (0x09), SP (0x20), and VCHAR (0x21-0x7E). Non-ASCII characters (> 0x7E) and control characters including CR and LF are rejected. Callers should not pass untrusted or user-supplied input without prior sanitization.

Applies to