public static final class RqHeaders.Base extends RqWrap implements RqHeaders
The class is immutable and thread-safe.
RqHeaders.Base, RqHeaders.Smart
Modifier and Type | Method and Description |
---|---|
List<String> |
header(CharSequence key)
Get single header.
|
Set<String> |
names()
Get all header names.
|
public Base(Request req)
req
- Original requestpublic List<String> header(CharSequence key) throws IOException
RqHeaders
header
in interface RqHeaders
key
- Header nameIOException
- If failspublic Set<String> names() throws IOException
RqHeaders
names
in interface RqHeaders
IOException
- If failsCopyright © 2015–2018 Take. All rights reserved.