org.mashupbots.socko

context

package context

Context objects provides a uniform way to read request data and write response data.

Socko uses ProcessingContext as the bridge between Netty handlers and Akka actor processors. ProcessingContext are created by Socko's Netty request handler (RequestHandler) and passed to your Akka actor processors via routes.

There are 4 types of ProcessingContext

Visibility
  1. Public
  2. All

Type Members

  1. case class EndPoint (method: String, host: String, uri: String) extends Product with Serializable

    Identifies the end point of an HTTP request.

  2. case class HttpChunkProcessingContext (channel: Channel, initialHttpRequest: InitialHttpRequest, httpChunk: HttpChunk) extends HttpProcessingContext with Product with Serializable

    Context for processing HTTP chunks.

  3. class HttpProcessingContext extends ProcessingContext

    Abstract context for reading HTTP requests and writing HTTP responses

  4. case class HttpRequestProcessingContext (channel: Channel, httpRequest: HttpRequest) extends HttpProcessingContext with Product with Serializable

    Context for processing HTTP requests.

  5. case class InitialHttpRequest (endPoint: EndPoint, isKeepAlive: Boolean, acceptedEncodings: Array[String]) extends Product with Serializable

    Details of the initial HTTP request that triggered HTTP chunk or WebSocket processing

  6. class ProcessingContext extends AnyRef

    When processing a web request, the context provides a uniform way to read request data and write response data.

  7. case class WsFrameProcessingContext (channel: Channel, endPoint: EndPoint, wsFrame: WebSocketFrame) extends ProcessingContext with Product with Serializable

    Context for processing web socket frames.

  8. case class WsHandshakeProcessingContext (channel: Channel, httpRequest: HttpRequest) extends HttpProcessingContext with Product with Serializable

    Context for processing web socket handshakes.

Value Members

  1. object HttpProcessingContext extends AnyRef

    Statics