Interface RestResponse
public interface RestResponse
Minimal framework-independent REST response abstraction.
-
Method Summary
-
Method Details
-
status
void status(int statusCode) Sets the response status.- Parameters:
statusCode- HTTP status code
-
body
-
header
Sets a response header.Default is a safe no-op so existing implementations keep working even before they opt in. Implementations should override this to actually emit the header.
- Parameters:
name- header name; non-null, non-blankvalue- header value; non-null
-