語言

AndroidHttpClient.Execute 方法

定義

多載

名稱 Description
Execute(HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

執行請求並使用所提供的處理器處理回應。

Execute(HttpHost, IHttpRequest, IHttpContext)

根據給定上下文,向目標執行請求。

Execute(HttpHost, IHttpRequest, IResponseHandler)

執行請求並使用所提供的處理器處理回應。

Execute(IHttpUriRequest, IResponseHandler, IHttpContext)

執行請求並使用所提供的處理器處理回應。

Execute(HttpHost, IHttpRequest)

使用預設上下文執行對目標的請求。

Execute(IHttpUriRequest, IHttpContext)

使用給定上下文執行請求。

Execute(IHttpUriRequest, IResponseHandler)

執行請求並使用所提供的處理器處理回應。

Execute(IHttpUriRequest)

根據給定上下文,向目標執行請求。

Execute(HttpHost, IHttpRequest, IResponseHandler, IHttpContext)

執行請求並使用所提供的處理器處理回應。

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object

參數

target
HttpHost

目標主機,或 null 是何時能在沒有它的情況下確定路線。

request
IHttpRequest

HTTP 請求要發送。

responseHandler
IResponseHandler

處理回應的處理者。

context
IHttpContext

這個請求的上下文,或者 null 說使用預設上下文。

傳回

回應處理器會回傳結果。

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(HttpHost, IHttpRequest, IHttpContext)

根據給定上下文,向目標執行請求。

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

參數

target
HttpHost

請求的目標主機。 如果實作仍能確定路由,例如指向預設目標或透過檢查請求,則可接受 null 。

request
IHttpRequest

執行請求

context
IHttpContext

執行時使用上下文,或 null 使用預設上下文

傳回

HTTP 回應回傳了該請求。

實作

屬性

例外狀況

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(HttpHost, IHttpRequest, IResponseHandler)

執行請求並使用所提供的處理器處理回應。

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object

參數

target
HttpHost

目標主機,或 null 是何時能在沒有它的情況下確定路線。

request
IHttpRequest

HTTP 請求要發送。

responseHandler
IResponseHandler

處理回應的處理者。

傳回

回應處理器會回傳結果。

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(IHttpUriRequest, IResponseHandler, IHttpContext)

執行請求並使用所提供的處理器處理回應。

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute(Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler * Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object

參數

request
IHttpUriRequest

HTTP 請求要發送。

responseHandler
IResponseHandler

處理回應的處理者。

context
IHttpContext

這個請求的上下文,或者 null 說使用預設上下文。

傳回

回應處理器會回傳結果。

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(HttpHost, IHttpRequest)

使用預設上下文執行對目標的請求。

[Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest -> Org.Apache.Http.IHttpResponse

參數

target
HttpHost

請求的目標主機。 如果實作仍能確定路由,例如指向預設目標或透過檢查請求,則可接受 null 。

request
IHttpRequest

執行請求

傳回

HTTP 回應回傳了該請求。

實作

屬性

例外狀況

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(IHttpUriRequest, IHttpContext)

使用給定上下文執行請求。

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute(Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.IHttpResponse

參數

request
IHttpUriRequest

執行請求

context
IHttpContext

執行時使用上下文,或 null 使用預設上下文

傳回

HTTP 回應回傳了該請求。

實作

屬性

例外狀況

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(IHttpUriRequest, IResponseHandler)

執行請求並使用所提供的處理器處理回應。

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Lang.Object? Execute(Org.Apache.Http.Client.Methods.IHttpUriRequest? request, Org.Apache.Http.Client.IResponseHandler? responseHandler);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest * Org.Apache.Http.Client.IResponseHandler -> Java.Lang.Object

參數

request
IHttpUriRequest

HTTP 請求要發送。

responseHandler
IResponseHandler

處理回應的處理者。

傳回

回應處理器會回傳結果。

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Execute(IHttpUriRequest)

根據給定上下文,向目標執行請求。

[Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;", "")]
public Org.Apache.Http.IHttpResponse? Execute(Org.Apache.Http.Client.Methods.IHttpUriRequest? request);
[<Android.Runtime.Register("execute", "(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;", "")>]
abstract member Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest -> Org.Apache.Http.IHttpResponse
override this.Execute : Org.Apache.Http.Client.Methods.IHttpUriRequest -> Org.Apache.Http.IHttpResponse

參數

request
IHttpUriRequest

執行請求

傳回

HTTP 回應回傳了該請求。

實作

屬性

例外狀況

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於