Language

Proxy.IHttpConnectCallback.OnBeforeRequest Method

Definition

Called before sending an HTTP CONNECT request to the proxy to establish a tunnel.

[Android.Runtime.Register("onBeforeRequest", "(Landroid/net/http/Proxy$HttpConnectCallback$Request;)V", "GetOnBeforeRequest_Landroid_net_http_Proxy_HttpConnectCallback_Request_Handler:Android.Net.Http.Proxy/IHttpConnectCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void OnBeforeRequest(Android.Net.Http.Proxy.IHttpConnectCallback.Request request);
[<Android.Runtime.Register("onBeforeRequest", "(Landroid/net/http/Proxy$HttpConnectCallback$Request;)V", "GetOnBeforeRequest_Landroid_net_http_Proxy_HttpConnectCallback_Request_Handler:Android.Net.Http.Proxy/IHttpConnectCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member OnBeforeRequest : Android.Net.Http.Proxy.IHttpConnectCallback.Request -> unit

Parameters

request
Proxy.IHttpConnectCallback.Request

Represents the HTTP CONNECT request that will be sent to the proxy. This value cannot be null.

Attributes

Remarks

Called before sending an HTTP CONNECT request to the proxy to establish a tunnel.

Allows manipulating, or canceling, said request before sending it to the proxy. Refer to Request to learn how a request can be manipulated/canceled.

Android reference for android.net.http.Proxy.HttpConnectCallback.onBeforeRequest.

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