PrerenderParameters


@Profile.ExperimentalUrlPrefetch
public final class PrerenderParameters


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

Summary

Nested types

public final class PrerenderParameters.Builder

A builder class to use to construct the PrerenderParameters.

Public methods

@NonNull Map<StringString>

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

@Nullable NoVarySearchHeader

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

@Nullable Integer

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

Public methods

getAdditionalHeaders

public @NonNull Map<StringStringgetAdditionalHeaders()

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

getExpectedNoVarySearchData

public @Nullable NoVarySearchHeader getExpectedNoVarySearchData()

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

getVariationsId

public @Nullable Integer getVariationsId()

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