title: HttpRequest (web client) and HttpRequest (server): method and contentType doesn't exchange
body: <p>The method and contentType parameters doesn't exchange in HttpRequest (web client) and HttpRequest (server) in Dart.</p>
  
  <p>I have the following code:</p>
  
  <p>(Web Client)</p>
  
      
  
  <pre class="lang-dart prettyprint-override"><code>var url = "http://127.0.0.1:8087";
  String jsonString = JSON.encode(dadosRegistro[id]);
  HttpRequest.request(url, method: "DELETE", sendData: jsonString, mimeType:  "application/json")
    .then((HttpRequest resp) {
       window.console.log(resp.response);
    }).catchError(tratarErro);
  </code></pre>
  
  <p>(Server)</p>
  
  <pre class="lang-dart prettyprint-override"><code>HttpServer.bind('127.0.0.1', 8087).then((server) {
  server.listen((HttpRequest request) {
    print(request.method);
    print(request.headers.contentType);
  });
  </code></pre>
  
  <p>When the Web Client calls server, the result is the following:</p>
  
  <pre class="lang-dart prettyprint-override"><code>OPTIONS
  null
  </code></pre>
  
  <p>My expectative was:</p>
  
  <pre class="lang-dart prettyprint-override"><code>DELETE
  application/json
  </code></pre>
  
  <p>Am I doing anything wrong?</p>
  
  <p>Thanks!</p>