RedirectStrategy

public abstract class RedirectStrategy


Cronet OkHttp aktarım katmanı için bir yönlendirme stratejisi tanımlar.

Özet

Herkese açık yöntemler

static RedirectStrategy

Yönlendirmeleri en fazla DEFAULT_REDIRECTS kez takip edecek bir strateji döndürür.

static RedirectStrategy

Yönlendirmeleri takip etmeyen bir strateji döndürür.

Herkese açık yöntemler

defaultStrategy

public static RedirectStrategy defaultStrategy()

Yönlendirmeleri en fazla DEFAULT_REDIRECTS kez takip edecek bir strateji döndürür. Daha fazla yönlendirme denenirse istisna oluşturulur.

withoutRedirects

public static RedirectStrategy withoutRedirects()

Yönlendirmeleri takip etmeyen bir strateji döndürür.

Cronet'in sınırlamaları (https://developer.android.com/guide/topics/connectivity/cronet/lifecycle#overview) nedeniyle yönlendirme yanıtının gövdesinin alınmasının mümkün olmadığını unutmayın. Bu nedenle, her zaman boş bir gövde sağlanır.