public final class RsWithBody extends Object implements Response
The class is immutable and thread-safe.
Constructor and Description |
---|
RsWithBody(byte[] body)
Ctor.
|
RsWithBody(InputStream body)
Ctor.
|
RsWithBody(Response res,
byte[] body)
Ctor.
|
RsWithBody(Response res,
InputStream body)
Ctor.
|
RsWithBody(Response res,
String body)
Ctor.
|
RsWithBody(String body)
Ctor.
|
public RsWithBody(String body)
body
- Bodypublic RsWithBody(byte[] body)
body
- Bodypublic RsWithBody(InputStream body)
body
- Bodypublic RsWithBody(Response res, String body)
res
- Original responsebody
- Bodypublic RsWithBody(Response res, byte[] body)
res
- Original responsebody
- Bodypublic RsWithBody(Response res, InputStream body)
res
- Original responsebody
- Bodypublic List<String> head() throws IOException
Response
head
in interface Response
IOException
- If something goes wrongpublic InputStream body()
Response
Copyright © 2015 Takes. All rights reserved.