Compartir a través de


HttpConnectionParams.SetStaleCheckingEnabled(IHttpParams, Boolean) Method

Definition

Defines whether stale connection check is to be used.

[Android.Runtime.Register("setStaleCheckingEnabled", "(Lorg/apache/http/params/HttpParams;Z)V", "")]
public static void SetStaleCheckingEnabled (Org.Apache.Http.Params.IHttpParams? params, bool value);
[<Android.Runtime.Register("setStaleCheckingEnabled", "(Lorg/apache/http/params/HttpParams;Z)V", "")>]
static member SetStaleCheckingEnabled : Org.Apache.Http.Params.IHttpParams * bool -> unit

Parameters

params
IHttpParams
value
Boolean

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

Attributes

Remarks

Defines 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.setStaleCheckingEnabled(org.apache.http.params.HttpParams, boolean).

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