Response.ok constructor

Response.ok(
  1. dynamic body
)

Creates a simple 200 OK response with the given body.

Implementation

Response.ok(this.body)
    : statusCode = 200,
      headers = _CaseInsensitiveMap({'content-type': 'text/plain'}),
      _cookies = [];