Partager via


HttpConnectionParams.IsStaleCheckingEnabled(IHttpParams) Method

Definition

Tests whether stale connection check is to be used.

[Android.Runtime.Register("isStaleCheckingEnabled", "(Lorg/apache/http/params/HttpParams;)Z", "")]
public static bool IsStaleCheckingEnabled (Org.Apache.Http.Params.IHttpParams? params);
[<Android.Runtime.Register("isStaleCheckingEnabled", "(Lorg/apache/http/params/HttpParams;)Z", "")>]
static member IsStaleCheckingEnabled : Org.Apache.Http.Params.IHttpParams -> bool

Parameters

params
IHttpParams

Returns

true if stale connection check is to be used, false otherwise.

Attributes

Remarks

Tests whether stale connection check is to be used. Disabling stale connection check may result in slight performance improvement at the risk of getting an I/O error when executing a request over a connection that has been closed at the server side.

Java documentation for org.apache.http.params.HttpConnectionParams.isStaleCheckingEnabled(org.apache.http.params.HttpParams).

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