BasicHttpResponse Constructors

Definition

Overloads

Name Description
BasicHttpResponse(IStatusLine)

Creates a response from a status line.

BasicHttpResponse(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

BasicHttpResponse(IStatusLine, IReasonPhraseCatalog, Locale)

Creates a new response.

BasicHttpResponse(ProtocolVersion, Int32, String)

Creates a response from elements of a status line.

BasicHttpResponse(IStatusLine)

Creates a response from a status line.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/StatusLine;)V", "")]
public BasicHttpResponse(Org.Apache.Http.IStatusLine? statusline);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/StatusLine;)V", "")>]
new Org.Apache.Http.Message.BasicHttpResponse : Org.Apache.Http.IStatusLine -> Org.Apache.Http.Message.BasicHttpResponse

Parameters

statusline
IStatusLine

The response status line.

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

BasicHttpResponse(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected BasicHttpResponse(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Message.BasicHttpResponse : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Message.BasicHttpResponse

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

BasicHttpResponse(IStatusLine, IReasonPhraseCatalog, Locale)

Creates a new response.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/StatusLine;Lorg/apache/http/ReasonPhraseCatalog;Ljava/util/Locale;)V", "")]
public BasicHttpResponse(Org.Apache.Http.IStatusLine? statusline, Org.Apache.Http.IReasonPhraseCatalog? catalog, Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/StatusLine;Lorg/apache/http/ReasonPhraseCatalog;Ljava/util/Locale;)V", "")>]
new Org.Apache.Http.Message.BasicHttpResponse : Org.Apache.Http.IStatusLine * Org.Apache.Http.IReasonPhraseCatalog * Java.Util.Locale -> Org.Apache.Http.Message.BasicHttpResponse

Parameters

statusline
IStatusLine

The response status line.

catalog
IReasonPhraseCatalog

The reason-phrase catalog, or null to disable automatic reason-phrase lookup.

locale
Locale

The locale used to look up reason phrases, or null for the system locale.

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

BasicHttpResponse(ProtocolVersion, Int32, String)

Creates a response from elements of a status line.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V", "")]
public BasicHttpResponse(Org.Apache.Http.ProtocolVersion? ver, int code, string? reason);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/ProtocolVersion;ILjava/lang/String;)V", "")>]
new Org.Apache.Http.Message.BasicHttpResponse : Org.Apache.Http.ProtocolVersion * int * string -> Org.Apache.Http.Message.BasicHttpResponse

Parameters

ver
ProtocolVersion

The response protocol version.

code
Int32

The response status code.

reason
String

The reason phrase for the status code, or null.

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