DartnessResponse constructor

DartnessResponse({
  1. int statusCode = HttpStatus.ok,
  2. String? body,
  3. Map<String, Object>? headers,
  4. Encoding? encoding,
})

Implementation

DartnessResponse({
  int statusCode = HttpStatus.ok,
  String? body,
  Map<String, Object>? headers,
  Encoding? encoding,
}) : this.fromShelf(
        shelf.Response(
          statusCode,
          body: body,
          headers: headers,
          encoding: encoding,
        ),
      );