Language

OnResponseReceivedAction Enum

Definition

public enum OnResponseReceivedAction
type OnResponseReceivedAction = 
Inheritance
OnResponseReceivedAction

Fields

Name Value Description
Close 0

Closes the tunnel connection, preventing it from being used to send HTTP requests.

When a tunnel connection is closed, 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.RESPONSE_ACTION_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.

Proceed 1

Proceeds establishing a tunnel.

This does not guarantee that the tunnel will successfully be established and used to send HTTP requests: HttpEngine will perform additional checks prior to that. Depending on their outcome, HttpEngine might still decide to close the tunnel connection. If the tunnel connection ends up being closed by HttpEngine, it will be considered 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.RESPONSE_ACTION_PROCEED.

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