org.scalatra.Handler.scala Maven / Gradle / Ivy
The newest version!
package org.scalatra
import org.scalatra.ServletCompat.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
}