public class Response extends Object
| Constructor and Description |
|---|
Response(int responseCode,
String message)
Creates an instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value)
Add a header to put into the HTTP response.
|
Map<String,String> |
headers()
Get all the headers to use for the HTTP response.
|
public Response(int responseCode,
String message)
responseCode - The HTTP response codemessage - The body of the responseCopyright © 2016, Peter Nerg Apache License v2.0