public class MessageHeaders extends Object
| Modifier and Type | Method and Description |
|---|---|
List<String> |
all(String name)
Returns all the values of a header field.
|
void |
appendTo(Appendable appendable) |
boolean |
contains(String name,
String value)
Returns true when the given header value is present.
|
Optional<String> |
first(String name)
Returns the first value of a header field.
|
Map<String,List<String>> |
map()
Returns a map of header fields to their values.
|
static MessageHeaders |
parse(ReadableByteChannel channel)
Parses application/warc-fields.
|
Optional<String> |
sole(String name)
Returns the value of a single-valued header field.
|
String |
toString() |
public Optional<String> sole(String name)
public boolean contains(String name, String value)
public static MessageHeaders parse(ReadableByteChannel channel) throws IOException
IOExceptionpublic void appendTo(Appendable appendable) throws IOException
IOExceptionCopyright © 2022. All rights reserved.