com.stackmob.newman

dsl

package dsl

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. dsl
  2. AsyncResponseHandlerDSL
  3. ResponseHandlerDSL
  4. RequestBuilderDSL
  5. URLBuilderDSL
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class AsyncResponseHandler[Failure, Success](handlers: List[((HttpResponseCode) ⇒ Boolean, (HttpResponse) ⇒ Validation[Failure, Success])], respFuture: Future[HttpResponse])(implicit errorConv: (Throwable) ⇒ Failure) extends Product with Serializable

    the same thing as

  2. trait AsyncResponseHandlerDSL extends AnyRef

  3. sealed trait Builder extends AnyRef

    Definition Classes
    RequestBuilderDSL
  4. case class HeaderAndBodyBuilder(fn: (Headers, RawBody) ⇒ HttpRequestWithBody, headers: Headers = scalaz.Scalaz.none[Nothing], body: RawBody = newman.this.`package`.RawBody.empty) extends Builder with Product with Serializable

    Definition Classes
    RequestBuilderDSL
  5. case class HeaderBuilder(fn: (Headers) ⇒ HttpRequest, headers: Headers = scalaz.Scalaz.none[Nothing]) extends Builder with Product with Serializable

    Definition Classes
    RequestBuilderDSL
  6. case class Path(list: List[String]) extends Product with Serializable

  7. case class PathBuilder(protocol: Protocol, host: String, port: Int, path: Path = Path.empty) extends URLCapable with Product with Serializable

  8. sealed trait Protocol extends AnyRef

    the base from which protocols are derived

  9. case class QueryStringBuilder(protocol: Protocol, host: String, port: Int, path: Path, query: List[(String, String)] = immutable.this.Nil) extends URLCapable with Product with Serializable

    Definition Classes
    URLBuilderDSL
  10. trait RequestBuilderDSL extends AnyRef

  11. case class ResponseHandler[Failure, Success](handlers: List[((HttpResponseCode) ⇒ Boolean, (HttpResponse) ⇒ Validation[Failure, Success])], resp: HttpResponse)(implicit errorConv: (Throwable) ⇒ Failure) extends Product with Serializable

    Definition Classes
    ResponseHandlerDSL
  12. trait ResponseHandlerDSL extends AnyRef

    Facilitates the handling of various response codes per response, where each handler for a given code may fail or may succeed with a value of some type Success or fail with a value of some type Failure.

  13. implicit class RichFutureHttpResponse extends AnyRef

    a class extension for

  14. implicit class RichIOHttpResponse extends AnyRef

    a class extension for

  15. trait URLBuilderDSL extends AnyRef

  16. trait URLCapable extends AnyRef

    Definition Classes
    URLBuilderDSL
  17. case class UnhandledResponseCode(code: HttpResponseCode, body: String) extends Exception with Product with Serializable

    the exception generated when a response handler (ie

Value Members

  1. def DELETE(url: URL)(implicit client: HttpClient): HeaderBuilder

    Definition Classes
    RequestBuilderDSL
  2. val DefaultPort: Int

    Definition Classes
    URLBuilderDSL
  3. def GET(url: URL)(implicit client: HttpClient): HeaderBuilder

    Definition Classes
    RequestBuilderDSL
  4. def HEAD(url: URL)(implicit client: HttpClient): HeaderBuilder

    Definition Classes
    RequestBuilderDSL
  5. def POST(url: URL)(implicit client: HttpClient): HeaderAndBodyBuilder

    Definition Classes
    RequestBuilderDSL
  6. def PUT(url: URL)(implicit client: HttpClient): HeaderAndBodyBuilder

    Definition Classes
    RequestBuilderDSL
  7. object Path extends Serializable

  8. implicit def asyncResponseHandlerToResponse[Failure, Success](handler: AsyncResponseHandler[Failure, Success])(implicit ctx: ExecutionContext): FutureValidation[Failure, Success]

    converts a

    converts a

    AsyncResponseHandler[Failure, Success]

    to the

    IO[Promise[Validation[Failure, Success]]]

    that results from evaluating the rules outlined in the

    AsyncResponseHandler

    IO[Promise[Validation[Failure, Success]]] }}} from evaluating the rules outlined in the

    AsyncResponseHandler

    AsyncResponseHandler[Failure, Success] }}} from evaluating the rules outlined in the

    AsyncResponseHandler
    Failure

    the failure type of the handler

    Success

    the success type of the handler

    handler

    the response handler

    returns

    the resultant

    IO[Promise[Validation[Failure, Success]]]
  9. object http extends Protocol with Product with Serializable

    the HTTP protocol

  10. object https extends Protocol with Product with Serializable

    the HTTPS protocol

  11. implicit def responseHandlerToResponse[Failure, Success](handler: ResponseHandler[Failure, Success]): Validation[Failure, Success]

    converts a

    converts a

    ResponseHandler[Failure, Success

    to the

    IO[Validation[Failure, Success]]

    that results from evaluating the rules outlined in the

    ResponseHandler

    IO[Validation[Failure, Success]] }}} from evaluating the rules outlined in the

    ResponseHandler

    ResponseHandler[Failure, Success }}} from evaluating the rules outlined in the

    ResponseHandler
    Failure

    the failure type of the handler

    Success

    the success type of the handler

    handler

    the response handler

    returns

    the resultant

    IO[Validation[Failure, Success]]
  12. implicit def stringToPath(s: String): Path

    converts a

    converts a

    String

    to a

    Path

    String }}}

    s

    the string to convert

    returns

    the converted

    Path
  13. implicit def transformerToHttpRequest(t: Builder): HttpRequest

    converts a

    converts a

    Builder

    to the

    HttpRequest

    it represents HttpRequest }}} Builder }}}

    t

    the

    Builder
    returns

    the resultant

    HttpRequest
  14. def url(host: String): PathBuilder

    Definition Classes
    URLBuilderDSL
  15. def url(protocol: Protocol, host: String): PathBuilder

    Definition Classes
    URLBuilderDSL
  16. def url(protocol: Protocol, host: String, port: Int): PathBuilder

    Definition Classes
    URLBuilderDSL
  17. def url(protocol: Protocol, host: String, path: Path): PathBuilder

    Definition Classes
    URLBuilderDSL
  18. def url(protocol: Protocol, host: String, port: Int, path: Path): PathBuilder

    Definition Classes
    URLBuilderDSL
  19. implicit def urlCapableToURL(c: URLCapable): URL

    converts a

    converts a

    URLCapable

    object to a

    URL

    URLCapable }}}

    c

    the object to convert

    returns

    the converted

    URL

Inherited from AsyncResponseHandlerDSL

Inherited from ResponseHandlerDSL

Inherited from RequestBuilderDSL

Inherited from URLBuilderDSL

Inherited from AnyRef

Inherited from Any

Ungrouped