Share via


IHttpResponseFactory.NewHttpResponse Method

Definition

Overloads

NewHttpResponse(IStatusLine, IHttpContext)

Creates a new response from a status line.

NewHttpResponse(ProtocolVersion, Int32, IHttpContext)

Creates a new response from status line elements.

NewHttpResponse(IStatusLine, IHttpContext)

Creates a new response from a status line.

[Android.Runtime.Register("newHttpResponse", "(Lorg/apache/http/StatusLine;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "GetNewHttpResponse_Lorg_apache_http_StatusLine_Lorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.IHttpResponseFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHttpResponse? NewHttpResponse (Org.Apache.Http.IStatusLine? statusline, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("newHttpResponse", "(Lorg/apache/http/StatusLine;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "GetNewHttpResponse_Lorg_apache_http_StatusLine_Lorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.IHttpResponseFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member NewHttpResponse : Org.Apache.Http.IStatusLine * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse

Parameters

statusline
IStatusLine

the status line

context
IHttpContext

the context from which to determine the locale for looking up a reason phrase if the status code is updated, or null to use the default locale

Returns

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

NewHttpResponse(ProtocolVersion, Int32, IHttpContext)

Creates a new response from status line elements.

[Android.Runtime.Register("newHttpResponse", "(Lorg/apache/http/ProtocolVersion;ILorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "GetNewHttpResponse_Lorg_apache_http_ProtocolVersion_ILorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.IHttpResponseFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHttpResponse? NewHttpResponse (Org.Apache.Http.ProtocolVersion? ver, int status, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("newHttpResponse", "(Lorg/apache/http/ProtocolVersion;ILorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "GetNewHttpResponse_Lorg_apache_http_ProtocolVersion_ILorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.IHttpResponseFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member NewHttpResponse : Org.Apache.Http.ProtocolVersion * int * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse

Parameters

ver
ProtocolVersion

the protocol version

status
Int32

the status code

context
IHttpContext

the context from which to determine the locale for looking up a reason phrase to the status code, or null to use the default locale

Returns

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