通过


IHttpResponseFeature.ReasonPhrase 属性

定义

获取或设置 RFC 9112 第 4 节中定义的原因短语。 请注意,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

属性值

注解

必须仅包含 ASCII 字符:HTAB(0x09)、SP(0x20)和 VCHAR(0x21-0x7E)。 将拒绝非 ASCII 字符(> 0x7E)和控制字符(包括 CR 和 LF)。 调用方不应在没有事先清理的情况下传递不受信任的输入或用户提供的输入。

适用于