HttpRequestExecutor.Execute 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.
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.
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.