mid).post(&#39;/&#39;);
</code></pre>
<h2 id="path">.path</h2>
<p>Only the path part from the URL. It is the full URL except for the query:</p>
<pre><code class="language-js">const mid = ctx =&gt; {
  expect(ctx.path).toBe(&#39;/question&#39;);
};

// Test it
run(mid).get(&#39;/question?answer=42&#39;);
</code></pre>
<h2 id="secure">.secure</h2>
<p>Returns true if the request is made through HTTPS. Take into account that if you are behind Cloudflare or similar it might be reported as false even though your 