LambdaServlet

constructor(contentType: String, block: () -> String)

Parameters

contentType

the MIME content type for the response. Defaults to "text/plain".

block

a lambda that produces the response body string.


constructor(block: () -> String)

Constructs a LambdaServlet with a default content type of "text/plain".

Parameters

block

a lambda that produces the response body string.