IHttpResponse.SetStatusLine Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:Org.Apache.Http.IHttpResponseInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Org.Apache.Http.IHttpResponseInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetStatusLine : Org.Apache.Http.ProtocolVersion * int -> unit
Parameters
- ver
- ProtocolVersion
the HTTP version
- code
- Int32
the status code
- 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:Org.Apache.Http.IHttpResponseInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Org.Apache.Http.IHttpResponseInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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
- 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.