Resources
@ChannelHandler$$Sharable case class Resources(base: URL, cacheSeconds: Int, passOnFail: Boolean) extends Plan with ServerErrorResponse
Serves static resources.
Adapted from Netty's example HttpStaticFileServerHandler
Adapted from Netty's example HttpStaticFileServerHandler
trait Serializable
trait Product
trait Equals
trait ServerErrorResponse
trait Plan
trait RequestPlan
trait ExceptionHandler
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any
Value members
Methods
def passOr[T <: HttpResponse](rf: => ResponseFunction[HttpResponse])(req: HttpRequest[ReceivedMessage]): Matchable
Inherited methods
@throws(java.lang.Exception)
def handlerAdded(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelActive(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def userEventTriggered(x$0: ChannelHandlerContext, x$1: <FromJavaObject>): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
override def channelRead(ctx: ChannelHandlerContext, msg: Object): Unit
- Definition Classes
- RequestPlan -> ChannelInboundHandlerAdapter -> ChannelInboundHandler
- Inhertied from
- RequestPlan
override def exceptionCaught(ctx: ChannelHandlerContext, t: Throwable): Unit
- Definition Classes
- ExceptionHandler
- Inhertied from
- ExceptionHandler
final override def channelReadComplete(ctx: ChannelHandlerContext): Unit
- Definition Classes
- RequestPlan -> ChannelInboundHandlerAdapter -> ChannelInboundHandler
- Inhertied from
- RequestPlan
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelInactive(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter
@throws(java.lang.Exception)
def handlerRemoved(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelUnregistered(x$0: ChannelHandlerContext): Unit
- Inhertied from
- ChannelInboundHandlerAdapter