Lenguaje

Proxy.IHttpConnectCallback.OnResponseReceived Método

Definición

Se llama después de recibir una respuesta a la solicitud HTTP CONNECT enviada al proxy para establecer un túnel.

[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

Parámetros

p0
IList<Pair>
p1
Int32

Devoluciones

Atributos

Comentarios

Se llama después de recibir una respuesta a la solicitud HTTP CONNECT enviada al proxy para establecer un túnel. Permite leer encabezados y código de estado.

Este método debe devolverse antes de que se pueda enviar cualquier solicitud HTTP a través del túnel que se está estableciendo.

No se llamará a este método para las solicitudes HTTP que pasarán por el túnel una vez establecido.

Si este método produce cualquier throwable, el destino del túnel será como si se hubiera devuelto RESPONSE_ACTION_CLOSE. No se detectará el objeto Throwable.

Referencia de Android para android.net.http.Proxy.HttpConnectCallback.onResponseReceived.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a