語言

Proxy.IHttpConnectCallback.OnResponseReceived 方法

定義

在收到發送給代理伺服器的 HTTP CONNECT 請求以建立隧道後呼叫。

[Android.Runtime.Register("onResponseReceived", "(Ljava/util/List;I)I", "GetOnResponseReceived_Ljava_util_List_IHandler:Android.Net.Http.Proxy/IHttpConnectCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public int OnResponseReceived(System.Collections.Generic.IList<Android.Util.Pair> p0, int p1);
[<Android.Runtime.Register("onResponseReceived", "(Ljava/util/List;I)I", "GetOnResponseReceived_Ljava_util_List_IHandler:Android.Net.Http.Proxy/IHttpConnectCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member OnResponseReceived : System.Collections.Generic.IList<Android.Util.Pair> * int -> int

參數

p0
IList<Pair>
p1
Int32

傳回

屬性

備註

在收到發送給代理伺服器的 HTTP CONNECT 請求以建立隧道後呼叫。 允許讀取標頭和狀態碼。

此方法必須先回傳,才能透過正在建立的隧道發送任何 HTTP 請求。

此方法不會被呼叫用於隧道建立後會通過的 HTTP 請求。

如果此方法丟出任何可投擲物,隧道的命運將如同RESPONSE_ACTION_CLOSE被退回。 投擲物不會被接住。

Android 參考資料。android.net.http.Proxy.HttpConnectCallback.onResponseReceived

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

適用於