Request(String method, Uri url)

Creates a new HTTP request.

Source

Request(String method, Uri url)
  : _defaultEncoding = UTF8,
    _bodyBytes = new Uint8List(0),
    super(method, url);