HttpStyleRequest constructor

HttpStyleRequest({
  1. required HttpRequest baseRequest,
  2. required Methods method,
  3. required RequestContext context,
  4. ContentType? contentType,
  5. Body? body,
})

Implementation

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