public class Headers
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
| Constructor and Description |
|---|
Headers(java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
|
Headers()
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
|
Headers(kotlin.Pair... headers) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
component1() |
Headers |
copy(java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
get(java.lang.String header)
Returns the value for the specified
header; lookup is case-insensitive in accordance with the HTTP spec. |
java.util.Map<java.lang.String,java.lang.String> |
getHeaderMap() |
int |
hashCode() |
Headers |
plus(kotlin.Pair<java.lang.String,java.lang.String> headerValue)
Returns a copy of these headers with a new header added.
|
Headers |
plus(Headers other)
Returns a copy of these headers with new headers added.
|
Headers |
plus(java.util.Map<java.lang.String,java.lang.String> other)
Returns a copy of these headers with new headers added.
|
java.lang.String |
toString() |
Headers |
withHeader(java.lang.String header,
java.lang.String value)
Returns a copy of these headers with a new header added.
|
Headers |
withHeaders(kotlin.Pair... headers)
Returns a copy of these headers with new headers added.
|
public Headers(@NotNull
java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
public Headers()
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
public Headers(@NotNull
kotlin.Pair... headers)
@Nullable
public java.lang.String get(@NotNull
java.lang.String header)
Returns the value for the specified header; lookup is case-insensitive in accordance with the HTTP spec.
header@NotNull public Headers plus(@NotNull kotlin.Pair<java.lang.String,java.lang.String> headerValue)
Returns a copy of these headers with a new header added.
If this object already contains the header it will be replaced by the new value.
@NotNull public Headers plus(@NotNull Headers other)
Returns a copy of these headers with new headers added.
If this object already contains the headers they will be replaced by the new values.
@NotNull public Headers plus(@NotNull java.util.Map<java.lang.String,java.lang.String> other)
Returns a copy of these headers with new headers added.
If this object already contains the headers they will be replaced by the new values.
@NotNull public Headers withHeader(@NotNull java.lang.String header, @NotNull java.lang.String value)
Returns a copy of these headers with a new header added.
If this object already contains the header it will be replaced by the new value.
@NotNull public Headers withHeaders(@NotNull kotlin.Pair... headers)
Returns a copy of these headers with new headers added.
If this object already contains the headers they will be replaced by the new values.
@NotNull public java.util.Map<java.lang.String,java.lang.String> getHeaderMap()
@NotNull public java.util.Map<java.lang.String,java.lang.String> component1()
@NotNull public Headers copy(@NotNull java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)