public interface Response
Response class represents responses which are received by page.| Modifier and Type | Method and Description |
|---|---|
byte[] |
body()
Returns the buffer with response body.
|
String |
finished()
Waits for this response to finish, returns failure error if request failed.
|
Frame |
frame()
Returns the
Frame that initiated this response. |
Map<String,String> |
headers()
Returns the object with HTTP headers associated with the response.
|
boolean |
ok()
Contains a boolean stating whether the response was successful (status in the range 200-299) or not.
|
Request |
request()
Returns the matching
Request object. |
int |
status()
Contains the status code of the response (e.g., 200 for a success).
|
String |
statusText()
Contains the status text of the response (e.g.
|
String |
text()
Returns the text representation of response body.
|
String |
url()
Contains the URL of the response.
|
byte[] body()
String finished()
Frame frame()
Frame that initiated this response.Map<String,String> headers()
boolean ok()
Request request()
Request object.int status()
String statusText()
String text()
String url()
Copyright © 2021. All rights reserved.