Class StringResponseFactory

Response factory that renders a given string as the response in plaintext.

Hierarchy

Constructors

Properties

targetContentType: string = 'text/plain'
targetStatus: HTTPStatus = HTTPStatus.OK

The status that should be set on the response.

value: string

The string to write as the body.

Methods