p

dispatch

package dispatch

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. dispatch
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AuthVerbs extends RequestVerbs
  2. trait CloseResourcesOnThrowableHandler [T] extends AsyncHandler[T]

    A trait to ensure some set of closeable resources are closed in the event of a throwable occuring during a request.

    A trait to ensure some set of closeable resources are closed in the event of a throwable occuring during a request. This can be combined with other AsyncHandlers, for example the OkHandler provided by Dispatch, to ensure that any closeable resources are cleanly shut down in the event of an exception.

    See the implementation of dispatch.as.File for an example of how this is used.

  3. class EnrichedFuture [A] extends AnyRef
  4. class FunctionHandler [T] extends AsyncCompletionHandler[T]
  5. type Future[+T] = scala.concurrent.Future[T]

    Type alias to scala.concurrent.Future so you don't have to import

  6. trait HeaderVerbs extends RequestVerbs
  7. trait HostVerbs extends AnyRef
  8. case class Http (clientBuilder: Builder) extends HttpExecutor with Product with Serializable

    Http executor with defaults

  9. trait HttpExecutor extends AnyRef
  10. case class InternationalDomainConversionException (message: String, cause: IllegalArgumentException) extends Exception with Product with Serializable
  11. trait MethodVerbs extends RequestVerbs
  12. class OkFunctionHandler [T] extends FunctionHandler[T] with OkHandler[T]
  13. trait OkHandler [T] extends AsyncHandler[T]
  14. trait ParamVerbs extends RequestVerbs
  15. case class RawUri (scheme: Option[String], userInfo: Option[String], host: Option[String], port: Option[Int], path: Option[String], query: Option[String], fragment: Option[String]) extends Product with Serializable

    URI representation with raw parts, so

  16. case class Req (run: (RequestBuilder) ⇒ RequestBuilder, props: Properties = Req.Properties()) extends MethodVerbs with UrlVerbs with ParamVerbs with AuthVerbs with HeaderVerbs with RequestBuilderVerbs with Product with Serializable

    This wrapper provides referential transparency for the underlying RequestBuilder.

  17. trait RequestBuilderVerbs extends RequestVerbs
  18. class RequestHandlerTupleBuilder extends AnyRef

    Builds tuples of (Request, AsyncHandler) for passing to Http#apply.

    Builds tuples of (Request, AsyncHandler) for passing to Http#apply. Implied in dispatch package object

  19. trait RequestVerbs extends AnyRef
  20. type Res = Response

    Type alias for Response, avoid need to import

  21. case class StatusCode (code: Int) extends Exception with Product with Serializable
  22. type Uri = URI

    Type alias for URI, avoid need to import

  23. trait UrlVerbs extends RequestVerbs

Value Members

  1. val Future: scala.concurrent.Future.type
  2. implicit def enrichFuture[T](future: Future[T]): EnrichedFuture[T]
  3. implicit def implyRequestHandlerTuple(builder: Req): RequestHandlerTupleBuilder
  4. implicit def implyRunnable[U](f: () ⇒ U): Runnable
  5. object :/ extends HostVerbs
  6. object BuildInfo extends Product with Serializable
  7. object Defaults
  8. object EnrichedFuture
  9. object FutureEither
  10. object FutureIterable
  11. object FutureRightIterable
  12. object Http extends Serializable

    Singleton helper for vending Http instances.

    Singleton helper for vending Http instances.

    In past versions of Dispatch, this singleon was, itself, an Http executor. That could lead to a few code traps were it was possible to unintentionally allocate additional Http pools without realizing it because Http.xxxx and Http().xxxx both look very similar - yet do very different things.

    In the interest of avoiding such code traps in future releases of Dispatch, Http was changed to a helper in 0.13.x that is capable of vending a default Http executor instance or of configuring a custom one with its withConfiguration method.

    If you relied on the default Http instance in your code you can easily port your code to 0.13.x by simply invoking the Http.default method. Such as...

    Http.default(localhost / "split" << Seq("str" -> str) > as.String)
  13. object IDNDomainHelpers
  14. object RawUri extends Serializable
  15. object Req extends Serializable
  16. object SleepFuture
  17. object UriEncode
  18. object host extends HostVerbs
  19. object url extends (String) ⇒ Req

Inherited from AnyRef

Inherited from Any

Ungrouped