public final class RqHeaders extends org.cactoos.list.ListEnvelope<String> implements List<String>
Request header values by name from headers.
Usage (assume Slice implementation):
Response response(String line, Iterable<Map.Entry<String, String>> headers,
Flow.Publisher<ByteBuffer> body) {
List<String> values = new RqHeaders(headers, "content-type");
// use these headers
}
Header names are case-insensitive, according to
RFC2616 SPEC:
| Modifier and Type | Class and Description |
|---|---|
static class |
RqHeaders.Single
Single header by name.
|
| Constructor and Description |
|---|
RqHeaders(Iterable<Map.Entry<String,String>> headers,
String name)
Header values by name.
|
add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subListadd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayequals, hashCode, iterator, toStringclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamCopyright © 2012–2020 jcabi.com. All rights reserved.