dispatch
package dispatch
- Alphabetic
- By Inheritance
- dispatch
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AuthVerbs extends RequestVerbs
- 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.
- class EnrichedFuture[A] extends AnyRef
- class FunctionHandler[T] extends AsyncCompletionHandler[T]
This class is not thread safe.
This class is not thread safe. A new instance should be used for each callback
- type Future[+T] = scala.concurrent.Future[T]
Type alias to scala.concurrent.Future so you don't have to import
- trait HeaderVerbs extends RequestVerbs
- trait HostVerbs extends AnyRef
- case class Http(clientBuilder: Builder) extends HttpExecutor with Product with Serializable
Http executor with defaults
- trait HttpExecutor extends AnyRef
- case class InternationalDomainConversionException(message: String, cause: IllegalArgumentException) extends Exception with Product with Serializable
- trait MethodVerbs extends RequestVerbs
- class OkFunctionHandler[T] extends FunctionHandler[T] with OkHandler[T]
- trait OkHandler[T] extends AsyncHandler[T]
- trait ParamVerbs extends RequestVerbs
- 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
- 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.
- trait RequestBuilderVerbs extends RequestVerbs
- 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
- trait RequestVerbs extends AnyRef
- type Res = Response
Type alias for Response, avoid need to import
- case class StatusCode(code: Int) extends Exception with Product with Serializable
- type Uri = URI
Type alias for URI, avoid need to import
- trait UrlVerbs extends RequestVerbs
Value Members
- val Future: scala.concurrent.Future.type
- implicit def enrichFuture[T](future: Future[T]): EnrichedFuture[T]
- implicit def implyRequestHandlerTuple(builder: Req): RequestHandlerTupleBuilder
- implicit def implyRunnable[U](f: () => U): Runnable
- object :/ extends HostVerbs
- object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object Defaults
- object EnrichedFuture
- object FutureEither
- object FutureIterable
- object FutureRightIterable
- 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
andHttp().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 defaultHttp
executor instance or of configuring a custom one with itswithConfiguration
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 theHttp.default
method. Such as...Http.default(localhost / "split" << Seq("str" -> str) > as.String)
- object IDNDomainHelpers
- object RawUri extends Serializable
- object Req extends Serializable
- object SleepFuture
- object UriEncode
- object host extends HostVerbs
- object url extends (String) => Req