title: express-http-context for next js api
body: <p>I need HTTP context for the next.js API</p>
  <pre><code>const httpContext = require(&quot;express-http-context&quot;);
  app.use(httpContext.middleware);
  httpContext.set(&quot;res&quot;, res);
  </code></pre>
  <p>Is there a way to use middleware in next.js 12 to get the same functionality where I can access the API response in any part of the server api</p>