次の方法で共有


BasicHttpResponse.SetReasonPhrase(String) Method

Definition

Updates the status line of this response with a new reason phrase.

[Android.Runtime.Register("setReasonPhrase", "(Ljava/lang/String;)V", "GetSetReasonPhrase_Ljava_lang_String_Handler")]
public virtual void SetReasonPhrase (string? reason);
[<Android.Runtime.Register("setReasonPhrase", "(Ljava/lang/String;)V", "GetSetReasonPhrase_Ljava_lang_String_Handler")>]
abstract member SetReasonPhrase : string -> unit
override this.SetReasonPhrase : string -> unit

Parameters

reason
String

the new reason phrase as a single-line string, or null to unset the reason phrase

Implements

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to