RequestHandler

scamper.http.server.RequestHandler
See theRequestHandler companion object
@FunctionalInterface

Defines handler for incoming request.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def apply(request: HttpRequest): HttpMessage

Handles incoming request.

Handles incoming request.

If handler satisfies the request, then it returns a response; otherwise, it returns a request.

Attributes

Concrete methods

Creates composite handler by applying this after other.

Creates composite handler by applying this after other.

If other returns a request, then the request is passed to this; otherwise, if other returns a response, then this is not invoked.

Value parameters

other

initial handler

Attributes

Creates composite handler by applying this before other.

Creates composite handler by applying this before other.

If this returns a request, then the request is passed to other; otherwise, if this returns a response, then other is not invoked.

Value parameters

other

fallback handler

Attributes