public interface Headers
Modifier and Type | Method and Description |
---|---|
void |
append(String name,
String value)
Append the value of the header.
|
void |
delete(String name)
Remove the header under this name.
|
Collection<HeaderKeyValue> |
entries()
Returns a collection of header key value pairs.
|
String |
get(String name)
Returns the header value.
|
boolean |
has(String name)
Check if the header is set.
|
Set<String> |
keys()
Return all header names (that are set).
|
void |
set(String name,
String value)
Set the header.
|
Collection<String> |
values()
Returns a collection of header values.
|
void append(String name, String value)
name
- Name of the header.value
- Value of the header.void delete(String name)
name
- Name of the header.Collection<HeaderKeyValue> entries()
String get(String name)
name
- Name of the header.boolean has(String name)
name
- Name of the header.void set(String name, String value)
name
- Name of the header.value
- Value of the header.Collection<String> values()
Copyright © 2024. All rights reserved.