Response constructor

Response({
  1. required Request request,
  2. Body? body,
  3. required int statusCode,
  4. Map<String, dynamic>? additionalHeaders,
  5. ContentType? contentType,
})

Creates with subclasses

Implementation

Response(
    {required Request request,
    Body? body,
    required this.statusCode,
    this.additionalHeaders,
    ContentType? contentType})
    : super(body: body, context: request.context, contentType: contentType);