BasicHttpResponse 构造函数

定义

重载

名称 说明
BasicHttpResponse(IStatusLine)

从状态行创建响应。

BasicHttpResponse(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

BasicHttpResponse(IStatusLine, IReasonPhraseCatalog, Locale)

创建新的响应。

BasicHttpResponse(ProtocolVersion, Int32, String)

从状态行的元素创建响应。

BasicHttpResponse(IStatusLine)

从状态行创建响应。

[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

参数

statusline
IStatusLine
属性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

BasicHttpResponse(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

BasicHttpResponse(IStatusLine, IReasonPhraseCatalog, Locale)

创建新的响应。

[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

参数

statusline
IStatusLine
locale
Locale
属性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

BasicHttpResponse(ProtocolVersion, Int32, String)

从状态行的元素创建响应。

[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

参数

code
Int32
reason
String
属性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于