Qwik City - Middleware
Qwik City middleware is a glue code that connects server rendering framework (such as express, cloudflare-pages, etc.) with the Qwik City framework. Qwik City provides a generic requestHandler()
function that can be used to handle requests. This function can be further wrapped to provide specific middleware for specific server frameworks.
Qwik City comes pre-bundle with:
- generic
requestHandler()
function. express
middlewarecloudflare-pages
middlewarenetlify
middleware
In the future, we may add other middleware glue-code. However, even if the glue code is not provided it should be relatively easy to write your own glue code based on the requestHandler()
function.