LazyHeaders

class LazyHeaders : Headers

A wrapper class for a set of headers to be included in a Glide request, allowing headers to be constructed lazily.

Ideally headers are constructed once and then re-used for multiple loads, rather then being constructed individually for each load.

This class is thread safe.

Types

Link copied to clipboard
class Builder
Adds an LazyHeaderFactory that will be used to construct a value for the given key* lazily on a background thread.

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getHeaders(): Map<String, String>
Returns a non-null map containing a set of headers to apply to an http request.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
val DEFAULT: Headers
A Headers object containing reasonable defaults that should be used when users don't want to provide their own headers.
Link copied to clipboard
val NONE: Headers
An empty Headers object that can be used if users don't want to provide headers.