Lingua

Proxy.IHttpConnectCallback.Request.Close Method

Definition

Releases all resources associated with the tunnel establishment request.

[Android.Runtime.Register("close", "()V", "", ApiSince=37)]
public void Close();
[<Android.Runtime.Register("close", "()V", "", ApiSince=37)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Remarks

Releases all resources associated with the tunnel establishment request.

If this method is called after proceed(List), this will have no effect on the tunnel establishment request and the underlying HTTP CONNECT, they will keep proceeding.

If this method is called before proceed(List), the tunnel establishment request and the underlying HTTP CONNECT request will be canceled.

When a tunnel establishment request is canceled, HttpEngine will interpret it as a failure to use the associated Proxy. HttpEngine will then try the next Proxy in the list passed to ProxyOptions (refer to that class documentation for more info).

Android reference for android.net.http.Proxy.HttpConnectCallback.Request.close.

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