org.scalatra.Handler.scala Maven / Gradle / Ivy
package org.scalatra
import javax.servlet.http.{ HttpServletRequest, HttpServletResponse }
/**
* A `Handler` is the Scalatra abstraction for an object that operates on
* a request/response pair.
*/
trait Handler {
/**
* Handles a request and writes to the response.
*/
def handle(request: HttpServletRequest, res: HttpServletResponse): Unit
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy