Module io.inverno.mod.http.server
Package io.inverno.mod.http.server
Interface ResponseBody.Resource
- Enclosing interface:
ResponseBody
public static interface ResponseBody.Resource
A resource payload producer.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Method Summary
-
Method Details
-
value
Sets the specified resource in the response payload.
This method tries to determine the content type of the specified resource in which case the content type header is set in the response.
- Parameters:
resource
- a resource- Throws:
IllegalStateException
- if data were already sent to the recipient
-