require"http/server"moduleGuffclassHandler<::HTTP::Handlergetter:modeldefinitialize(@models:Models)enddefcall(context:HTTP::Server::Context)# do nothing by defaultcall_next(context)endprivatedefredirect(context,url:String)context.response.status_code=302context.response.headers["location"]=urlendendend