Package

dispatch

Permalink

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

    Permalink
  2. trait CloseResourcesOnThrowableHandler[T] extends AsyncHandler[T]

    Permalink

    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

    Permalink
  4. class FunctionHandler[T] extends AsyncCompletionHandler[T]

    Permalink

    This class is not thread safe.

    This class is not thread safe. A new instance should be used for each callback

  5. type Future[+T] = scala.concurrent.Future[T]

    Permalink

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

  6. trait HeaderVerbs extends RequestVerbs

    Permalink
  7. trait HostVerbs extends AnyRef

    Permalink
  8. case class Http(clientBuilder: Builder) extends HttpExecutor with Product with Serializable

    Permalink

    Http executor with defaults

  9. trait HttpExecutor extends AnyRef

    Permalink
  10. case class InternationalDomainConversionException(message: String, cause: IllegalArgumentException) extends Exception with Product with Serializable

    Permalink
  11. trait MethodVerbs extends RequestVerbs

    Permalink
  12. class OkFunctionHandler[T] extends FunctionHandler[T] with OkHandler[T]

    Permalink
  13. trait OkHandler[T] extends AsyncHandler[T]

    Permalink
  14. trait ParamVerbs extends RequestVerbs

    Permalink
  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

    Permalink

    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

    Permalink

    This wrapper provides referential transparency for the underlying RequestBuilder.

  17. trait RequestBuilderVerbs extends RequestVerbs

    Permalink
  18. class RequestHandlerTupleBuilder extends AnyRef

    Permalink

    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

    Permalink
  20. type Res = Response

    Permalink

    Type alias for Response, avoid need to import

  21. case class StatusCode(code: Int) extends Exception with Product with Serializable

    Permalink
  22. type Uri = URI

    Permalink

    Type alias for URI, avoid need to import

  23. trait UrlVerbs extends RequestVerbs

    Permalink

Value Members

  1. object :/ extends HostVerbs

    Permalink
  2. object BuildInfo extends Product with Serializable

    Permalink

    This object was generated by sbt-buildinfo.

  3. object Defaults

    Permalink
  4. object EnrichedFuture

    Permalink
  5. val Future: scala.concurrent.Future.type

    Permalink
  6. object FutureEither

    Permalink
  7. object FutureIterable

    Permalink
  8. object FutureRightIterable

    Permalink
  9. object Http extends Serializable

    Permalink

    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)
  10. object IDNDomainHelpers

    Permalink
  11. object RawUri extends Serializable

    Permalink
  12. object Req extends Serializable

    Permalink
  13. object SleepFuture

    Permalink
  14. object UriEncode

    Permalink
  15. package as

    Permalink
  16. implicit def enrichFuture[T](future: Future[T]): EnrichedFuture[T]

    Permalink
  17. object host extends HostVerbs

    Permalink
  18. implicit def implyRequestHandlerTuple(builder: Req): RequestHandlerTupleBuilder

    Permalink
  19. implicit def implyRunnable[U](f: () ⇒ U): Runnable

    Permalink
  20. package oauth

    Permalink
  21. package retry

    Permalink
  22. package stream

    Permalink
  23. object url extends (String) ⇒ Req

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped