Request constructor

Request({
  1. required RequestContext context,
  2. ContentType? contentType,
  3. Body? body,
  4. Map<String, List<String>>? headers,
  5. List<Cookie>? cookies,
  6. Methods? method,
})

Creates with subclasses

Implementation

Request(
    {required RequestContext context,
    ContentType? contentType,
    Body? body,
    this.headers,
    this.cookies,
    this.method})
    : super(body: body, context: context, contentType: contentType);