Request constructor

Request(
  1. String method, [
  2. Object? document
])

Creates a new instance if the request with the specified HTTP method and document.

Implementation

Request(this.method, [this.document]);