PrefetchParameters


@Profile.ExperimentalUrlPrefetch
class PrefetchParameters


Parameters for customizing the prefetch. Use the Builder to construct.

Summary

Nested types

A builder class for constructing PrefetchParameters instances.

Public functions

(Mutable)Map<String!, String!>

Returns the map of additional HTTP headers to be sent with the prefetch request.

NoVarySearchHeader?

Returns the expected No-Vary-Search header data used to match subsequent navigations to this prefetch.

Int?

Returns the variations ID associated with this prefetch request, if any.

Boolean

Returns whether JavaScript is enabled for the prefetch, which influences the sending of client hints.

Public functions

getAdditionalHeaders

fun getAdditionalHeaders(): (Mutable)Map<String!, String!>

Returns the map of additional HTTP headers to be sent with the prefetch request.

getExpectedNoVarySearchData

fun getExpectedNoVarySearchData(): NoVarySearchHeader?

Returns the expected No-Vary-Search header data used to match subsequent navigations to this prefetch.

getVariationsId

fun getVariationsId(): Int?

Returns the variations ID associated with this prefetch request, if any.

isJavaScriptEnabled

fun isJavaScriptEnabled(): Boolean

Returns whether JavaScript is enabled for the prefetch, which influences the sending of client hints.