次の方法で共有


HttpRequestExecutor.Execute Method

Definition

Synchronously send a request and obtain the response.

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpClientConnection;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "GetExecute_Lorg_apache_http_HttpRequest_Lorg_apache_http_HttpClientConnection_Lorg_apache_http_protocol_HttpContext_Handler")]
public virtual Org.Apache.Http.IHttpResponse? Execute (Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.IHttpClientConnection? conn, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpClientConnection;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "GetExecute_Lorg_apache_http_HttpRequest_Lorg_apache_http_HttpClientConnection_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member Execute : Org.Apache.Http.IHttpRequest * Org.Apache.Http.IHttpClientConnection * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.IHttpRequest * Org.Apache.Http.IHttpClientConnection * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse

Parameters

request
IHttpRequest

the request to send. It will be preprocessed.

conn
IHttpClientConnection

the open connection over which to send

context
IHttpContext

Returns

Attributes

Exceptions

in case of a protocol or processing problem

in case of an I/O problem

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