public final class LazyHeaders extends java.lang.Object implements Headers
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.
Modifier and Type | Class and Description |
---|---|
static class |
LazyHeaders.Builder
Adds an
LazyHeaderFactory that will be used to construct a value for the given
key* lazily on a background thread. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns a non-null map containing a set of headers to apply to an http request.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
Headers
getHeaders
in interface Headers
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object