Package com.bumptech.glide.load.model
Class LazyHeaders
java.lang.Object
com.bumptech.glide.load.model.LazyHeaders
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAdds anLazyHeaderFactorythat will be used to construct a value for the given key* lazily on a background thread. -
Field Summary
-
Method Summary
-
Method Details
-
getHeaders
Description copied from interface:HeadersReturns a non-null map containing a set of headers to apply to an http request.- Specified by:
getHeadersin interfaceHeaders
-
toString
-
equals
-
hashCode
public int hashCode()
-