public class Curl4jEngineResponse extends java.lang.Object implements EngineResponse
| Constructor and Description |
|---|
Curl4jEngineResponse(Curl4jEngineRequest request,
int statusCode,
HeaderList headers,
WebBody body) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable WebBody |
body()
Gets the response body for the request if present.
|
void |
close() |
HeaderList |
headers()
Gets all the headers received for the request.
|
java.lang.String |
message()
Gets the returned status message for the request.
|
Curl4jEngineRequest |
request()
The executed
EngineRequest of this response. |
int |
statusCode()
Gets the returned status code for the request.
|
public Curl4jEngineResponse(Curl4jEngineRequest request, int statusCode, HeaderList headers, WebBody body)
public Curl4jEngineRequest request()
EngineResponseEngineRequest of this response.request in interface EngineResponsepublic int statusCode()
EngineResponsestatusCode in interface EngineResponsepublic java.lang.String message()
EngineResponsemessage in interface EngineResponsepublic HeaderList headers()
EngineResponseheaders in interface EngineResponse@Nullable public @Nullable WebBody body()
EngineResponsebody in interface EngineResponsepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException