#39;);
};

run(mid).get(&#39;/hello?answer=42&#39;);
</code></pre>
<h2 id="method">.method</h2>
<p>The request method, it can be <code>GET</code>, <code>POST</code>, <code>PUT</code>, <code>DELETE</code>:</p>
<pre><code class="language-js">const mid = ctx =&gt; {
  expect(ctx.method).toBe(&#39;GET&#39;);
};

// Test it
run(mid).get(&#39;/&#39;);
</code></pre>
<p>Or other methods:</p>
<pre><code class="language-js">const mid = ctx =&gt; {
  expect(ctx.method).toBe(&#39;POST&#39;);
};

// Test it
run(noCsrf, 