Response.html constructor

Response.html(
  1. String html, {
  2. int status = 200,
})

Creates an HTML response with the provided html string and status code.

Implementation

Response.html(String html, {int status = 200})
    : statusCode = status,
      body = html,
      headers = _CaseInsensitiveMap({'content-type': 'text/html'}),
      _cookies = [];