e-class.html">HttpResponse</a>
object through the response property.
The server writes its response to the body of the HttpResponse object.
For example, here's a function that responds to a request:</p>
<pre class="language-dart"><code>void handleGetRequest(HttpRequest req) {
  HttpResponse res = req.response;
  res.write('Received request ${req.method}: ${req.uri.path}');
  res.close();
}
</code></pre>
    </section>
    
    <section>
      <dl class="dl-horizontal">

        <dt>Implemented types</dt>
  