public final class RsWithHeader extends Object implements Response
The class is immutable and thread-safe.
Constructor and Description |
---|
RsWithHeader(Response res,
String hdr)
Ctor.
|
RsWithHeader(Response res,
String hdr,
boolean unq)
Ctor.
|
RsWithHeader(Response res,
String name,
String value)
Ctor.
|
RsWithHeader(Response res,
String name,
String value,
boolean unq)
Ctor.
|
public RsWithHeader(Response res, String name, String value)
res
- Original responsename
- Header namevalue
- Header valuepublic RsWithHeader(Response res, String name, String value, boolean unq)
res
- Original responsename
- Header namevalue
- Header valueunq
- Uniquepublic RsWithHeader(Response res, String hdr)
res
- Original responsehdr
- Header to addpublic List<String> head() throws IOException
Response
head
in interface Response
IOException
- If something goes wrongpublic InputStream body() throws IOException
Response
body
in interface Response
IOException
- If something goes wrongCopyright © 2015 Takes. All rights reserved.