The Response body. @return an Optional wrapping the response body.
()
| 147 | * @return an Optional wrapping the response body. |
| 148 | */ |
| 149 | public Optional<ByteBuffer> responseBody() { |
| 150 | if (this.responseBody == null) { |
| 151 | return Optional.empty(); |
| 152 | } |
| 153 | return Optional.of(ByteBuffer.wrap(this.responseBody)); |
| 154 | } |
| 155 | |
| 156 | public Map<String, Collection<String>> responseHeaders() { |
| 157 | if (this.responseHeaders == null) { |