html static method

Response html(
  1. dynamic htmlData, {
  2. int statusCode = HttpStatus.ok,
  3. Map<String, String> headers = const {},
})

statusCode defaults to 200.

Implementation

static Response html(
  dynamic htmlData, {
  int statusCode = HttpStatus.ok,
  Map<String, String> headers = const {},
}) => Response(
  data: htmlData,
  responseType: ResponseType.html,
  httpStatusCode: statusCode,
  headers: headers,
);