Megosztás a következőn keresztül:


BasicHttpResponse.SetStatusLine Method

Definition

Overloads

SetStatusLine(ProtocolVersion, Int32)

Sets the status line of this response with a reason phrase.

SetStatusLine(ProtocolVersion, Int32, String)

Sets the status line of this response with a reason phrase.

SetStatusLine(ProtocolVersion, Int32)

Sets the status line of this response with a reason phrase.

[Android.Runtime.Register("setStatusLine", "(Lorg/apache/http/ProtocolVersion;I)V", "GetSetStatusLine_Lorg_apache_http_ProtocolVersion_IHandler")]
public virtual void SetStatusLine (Org.Apache.Http.ProtocolVersion? ver, int code);
[<Android.Runtime.Register("setStatusLine", "(Lorg/apache/http/ProtocolVersion;I)V", "GetSetStatusLine_Lorg_apache_http_ProtocolVersion_IHandler")>]
abstract member SetStatusLine : Org.Apache.Http.ProtocolVersion * int -> unit
override this.SetStatusLine : Org.Apache.Http.ProtocolVersion * int -> unit

Parameters

ver
ProtocolVersion

the HTTP version

code
Int32

the status code

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

SetStatusLine(ProtocolVersion, Int32, String)

Sets the status line of this response with a reason phrase.

[Android.Runtime.Register("setStatusLine", "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V", "GetSetStatusLine_Lorg_apache_http_ProtocolVersion_ILjava_lang_String_Handler")]
public virtual void SetStatusLine (Org.Apache.Http.ProtocolVersion? ver, int code, string? reason);
[<Android.Runtime.Register("setStatusLine", "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V", "GetSetStatusLine_Lorg_apache_http_ProtocolVersion_ILjava_lang_String_Handler")>]
abstract member SetStatusLine : Org.Apache.Http.ProtocolVersion * int * string -> unit
override this.SetStatusLine : Org.Apache.Http.ProtocolVersion * int * string -> unit

Parameters

ver
ProtocolVersion

the HTTP version

code
Int32

the status code

reason
String

the reason phrase, or null to omit

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