LambdaServlet
An HttpServlet that serves the result of a lambda function as the HTTP GET response body.
Responses include Cache-Control: must-revalidate,no-cache,no-store headers.
Parameters
contentType
the MIME content type for the response. Defaults to "text/plain".
block
a lambda that produces the response body string.
Constructors
Link copied to clipboard
Constructs a LambdaServlet with a default content type of "text/plain".