sendAsRaw property

bool get sendAsRaw
inherited

If true, returned value from methods will be sent sent to the client as raw data without any formatting. One use case is to return data through a non-api call. Defaults to false, override to change. If used, the endpoint method is responsible for correctly setting the contentType of the http response (defaults to text/plain).

Implementation

bool get sendAsRaw => false;