title: POST with koa (nodejs)
body: <p>I keep annoyingly on finding examples that only parse JSON sent. I am trying to find an example where a POST comes from a form.</p>
  
  <pre><code>&lt;form class="form-horizontal" role="form" action="/" method="post"&gt;
      &lt;input type="text" class="form-control" name="email" placeholder="your@email.here"&gt;
      &lt;input type="text" class="form-control" name="password" placeholder="password"&gt;
      &lt;button type="submit" class="btn btn-default"&gt;Sign in&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>As you can see i have fields <code>email</code> and <code>password</code>. I am using <code>koa-router</code> which boasts express style routing but this isn't working:</p>
  
  <pre><code>.post('/', function* () {
      console.log(this.body.email); // &lt;--- undefined
      console.log(this.body.password);
  })
  </code></pre>