public class Headers
extends java.lang.Object
| Constructor and Description |
|---|
Headers(okhttp3.Headers headers) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Returns true if other is a Headers object with the same headers, with the same casing, in the same order.
|
int |
hashCode() |
java.util.Set<java.lang.String> |
names()
Returns an immutable, case-insensitive set of header names.
|
java.lang.String |
toString() |
java.util.List<java.lang.String> |
values(java.lang.String name)
Returns an immutable list of the header values for the specified name.
|
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other object to comparepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<java.lang.String> names()
public java.util.List<java.lang.String> values(java.lang.String name)
name - the name of the specified header