Constructor and Description |
---|
HeadersImpl()
Creates a new collection of HTTP 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.
|
public void append(String name, String value)
Headers
public void delete(String name)
Headers
public Collection<HeaderKeyValue> entries()
Headers
public String get(String name)
Headers
public boolean has(String name)
Headers
public Set<String> keys()
Headers
public void set(String name, String value)
Headers
public Collection<String> values()
Headers
Copyright © 2024. All rights reserved.