QuicOptions


public class QuicOptions
extends Object

java.lang.Object
   ↳ android.net.http.QuicOptions


Configuration options for QUIC.

The settings in this class are only relevant if QUIC is enabled. Use HttpEngine.Builder#setEnableQuic(boolean) to enable / disable QUIC for the HTTP engine.

Summary

Nested classes

class QuicOptions.Builder

Builder for QuicOptions

Public methods

Set<String> getAllowedQuicHosts()

See Builder#addAllowedQuicHost

String getHandshakeUserAgent()

See Builder#setHandshakeUserAgent

Duration getIdleConnectionTimeout()

See Builder#setIdleConnectionTimeout

int getInMemoryServerConfigsCacheSize()

See Builder#setInMemoryServerConfigsCacheSize

boolean hasInMemoryServerConfigsCacheSize()

See Builder#setInMemoryServerConfigsCacheSize

Inherited methods

Public methods

getAllowedQuicHosts

Added in API level 34
Also in S Extensions 7
public Set<String> getAllowedQuicHosts ()

See Builder#addAllowedQuicHost

Returns
Set<String> This value cannot be null.

getHandshakeUserAgent

Added in API level 34
Also in S Extensions 7
public String getHandshakeUserAgent ()

See Builder#setHandshakeUserAgent

Returns
String This value may be null.

getIdleConnectionTimeout

Added in API level 34
Also in S Extensions 7
public Duration getIdleConnectionTimeout ()

See Builder#setIdleConnectionTimeout

Returns
Duration This value may be null.

getInMemoryServerConfigsCacheSize

Added in API level 34
Also in S Extensions 7
public int getInMemoryServerConfigsCacheSize ()

See Builder#setInMemoryServerConfigsCacheSize

Returns
int

hasInMemoryServerConfigsCacheSize

Added in API level 34
Also in S Extensions 7
public boolean hasInMemoryServerConfigsCacheSize ()

See Builder#setInMemoryServerConfigsCacheSize

Returns
boolean