To use the ? operator handlers should be able to return a Result(probably a re-export of http_types::Result). The macro would still allow to return a plain response.
// this works
#[vlugin]
async fn handler(req: Request) -> Response {}
// this as well
#[vlugin]
async fn handler(req: Request) -> Result {}
To use the
?
operator handlers should be able to return aResult
(probably a re-export ofhttp_types::Result
). The macro would still allow to return a plain response.