Package

io.backchat.hookup

http

Permalink

package http

Visibility
  1. Public
  2. All

Type Members

  1. case class /(parent: Path, child: String) extends Path with Product with Serializable

    Permalink
  2. case class :?(path: Path, params: ParamMap) extends Product with Serializable

    Permalink
  3. class CookieSet extends SetLike[Cookie, Set[Cookie]]

    Permalink

    Adapt cookies of a Message to a mutable Set.

    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.

  4. class HeaderMap extends MapLike[String, String, Map[String, String]]

    Permalink

    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").

  5. trait HttpMessageProxy extends HttpMessage

    Permalink

    Proxy for HttpMessage.

    Proxy for HttpMessage. Used by Request and Response.

  6. trait HttpRequestProxy extends HttpRequest with HttpMessageProxy

    Permalink

    Proxy for HttpRequest.

    Proxy for HttpRequest. Used by Request.

  7. trait HttpResponseProxy extends HttpResponse with HttpMessageProxy

    Permalink

    Proxy for HttpResponse.

    Proxy for HttpResponse. Used by Response.

  8. abstract class IntParamMatcher extends AnyRef

    Permalink

    Int param extractor: object Page extends IntParamMatcher("page") (Path(request.path) :? request.params) match { case Root / "blog" :? Page(page) => ...

  9. abstract class LongParamMatcher extends AnyRef

    Permalink

    Long param extractor: object UserId extends LongParamMatcher("user_id") (Path(request.path) :? request.params) match { case Root / "user" :? UserId(userId) => ...

  10. abstract class Message extends HttpMessage

    Permalink

    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.

  11. class MockResponse extends Response

    Permalink
  12. class Numeric[A <: AnyVal] extends AnyRef

    Permalink
    Attributes
    protected
  13. class ParamMap extends MapLike[String, String, Map[String, String]]

    Permalink

    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).

  14. abstract class ParamMatcher extends AnyRef

    Permalink

    Param extractor: object ScreenName extends ParamMatcher("screen_name") (Path(request.path) :? request.params) match { case Root / "user" :? ScreenName(screenName) => ...

  15. abstract class Path extends AnyRef

    Permalink

    Base class for path extractors.

  16. case class ProxyCredentials(username: String, password: String) extends Product with Serializable

    Permalink
  17. abstract class Request extends Message with HttpRequestProxy

    Permalink

    Rich HttpRequest.

    Rich HttpRequest.

    Use RequestProxy to created an even richer subclass.

  18. class RequestBuilder[HasUrl] extends AnyRef

    Permalink
  19. abstract class RequestProxy extends Request

    Permalink

    Proxy for Request.

    Proxy for Request. This can be used to create a richer request class that wraps Request.

  20. abstract class Response extends Message with HttpResponseProxy

    Permalink

    Rich HttpResponse

Value Members

  1. object ->

    Permalink

    HttpMethod extractor

  2. object /:

    Permalink

    Path separator extractor: Path("/1/2/3/test.json") match { case Root / "1" / "2" / "3" / "test.json" => ...

  3. object :&

    Permalink

    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) => ...

  4. object Integer extends Numeric[Int]

    Permalink

    Integer extractor: Path("/user/123") match { case Root / "user" / Int(userId) => ...

  5. object Long extends Numeric[Long]

    Permalink

    Long extractor: Path("/user/123") match { case Root / "user" / Long(userId) => ...

  6. object MediaType

    Permalink
  7. object Message

    Permalink
  8. object Method

    Permalink

    Scala aliases for HttpMethod.

    Scala aliases for HttpMethod. Java users should use Netty's HttpMethod.

  9. object ParamMap

    Permalink
  10. object Path

    Permalink
  11. object ProxyCredentials extends Serializable

    Permalink
  12. object Request

    Permalink
  13. object RequestBuilder

    Permalink

    Factory for io.backchat.hookup.http.RequestBuilder instances

  14. object RequestConfig extends Serializable

    Permalink
  15. object Response

    Permalink
  16. object Root extends Path with Product with Serializable

    Permalink

    Root extractor: Path("/") match { case Root => ...

    Root extractor: Path("/") match { case Root => ... }

  17. object Status

    Permalink

    Scala aliases for HttpResponseStatus.

    Scala aliases for HttpResponseStatus. Java users should use Netty's HttpResponseStatus.

  18. object StringUtil

    Permalink
  19. object Version

    Permalink

    Scala aliases for HttpVersion.

    Scala aliases for HttpVersion. Java users should use Netty's HttpVersion

  20. object ~

    Permalink

    File extension extractor

Ungrouped