Adapt cookies of a Message to a mutable Set.
Adapt headers of an HttpMessage to a mutable Map.
Adapt headers of an HttpMessage to a mutable Map. Header names are case-insensitive. For example, get("accept") is the same as get("Accept").
Proxy for HttpMessage.
Proxy for HttpMessage. Used by Request and Response.
Proxy for HttpRequest.
Proxy for HttpRequest. Used by Request.
Proxy for HttpResponse.
Proxy for HttpResponse. Used by Response.
Int param extractor: object Page extends IntParamMatcher("page") (Path(request.path) :? request.params) match { case Root / "blog" :? Page(page) => ...
Long param extractor: object UserId extends LongParamMatcher("user_id") (Path(request.path) :? request.params) match { case Root / "user" :? UserId(userId) => ...
Rich HttpMessage
Rich HttpMessage
Base class for Request and Response. There are both input and output methods, though only one set of methods should be used.
Adapt params of a Request to a mutable Map.
Adapt params of a Request to a mutable Map. Handle parameters in the URL and form encoded body. Multipart forms are not supported (not needed, could be abusive).
Param extractor: object ScreenName extends ParamMatcher("screen_name") (Path(request.path) :? request.params) match { case Root / "user" :? ScreenName(screenName) => ...
Base class for path extractors.
Rich HttpRequest.
Rich HttpRequest.
Use RequestProxy to created an even richer subclass.
Proxy for Request.
Proxy for Request. This can be used to create a richer request class that wraps Request.
Rich HttpResponse
HttpMethod extractor
Path separator extractor: Path("/1/2/3/test.json") match { case Root / "1" / "2" / "3" / "test.json" => ...
Multiple param extractor: object A extends ParamMatcher("a") object B extends ParamMatcher("b") (Path(request.path) :? request.params) match { case Root / "user" :? A(a) :& B(b) => ...
Integer extractor: Path("/user/123") match { case Root / "user" / Int(userId) => ...
Long extractor: Path("/user/123") match { case Root / "user" / Long(userId) => ...
Scala aliases for HttpMethod.
Scala aliases for HttpMethod. Java users should use Netty's HttpMethod.
Factory for io.backchat.hookup.http.RequestBuilder instances
Root extractor: Path("/") match { case Root => ...
Root extractor: Path("/") match { case Root => ... }
Scala aliases for HttpResponseStatus.
Scala aliases for HttpResponseStatus. Java users should use Netty's HttpResponseStatus.
Scala aliases for HttpVersion.
Scala aliases for HttpVersion. Java users should use Netty's HttpVersion
File extension extractor
Adapt cookies of a Message to a mutable Set. Requests use the Cookie header and Responses use the Set-Cookie header. If a cookie is added to the CookieSet, a header is automatically added to the Message. If a cookie is removed from the CookieSet, a header is automatically removed from the message.
Note: This is a Set, not a Map, because we assume the caller should choose the cookie based on name, domain, path, and possibly other attributes.