Package

io.atomicbits.scraml

dsl

Permalink

package dsl

Visibility
  1. Public
  2. All

Type Members

  1. trait BinaryData extends AnyRef

    Permalink

    The BinaryData object is the Response result type when binary data is received from the server.

  2. class BinaryMethodSegment[B] extends MethodSegment[B, BinaryData]

    Permalink
  3. sealed trait BinaryRequest extends AnyRef

    Permalink

    The Binary Request object is an internal type of the DSL and is not directly visible for the user.

  4. sealed trait BodyPart extends AnyRef

    Permalink

    Created by peter on 1/07/15.

  5. case class ByteArrayBinaryRequest(byteArray: Array[Byte]) extends BinaryRequest with Product with Serializable

    Permalink
  6. case class ByteArrayPart(name: String, bytes: Array[Byte], contentType: Option[String] = None, charset: Option[Charset] = Some(Charset.forName("UTF8")), contentId: Option[String] = None, transferEncoding: Option[String] = None) extends BodyPart with Product with Serializable

    Permalink

    name

    The name of the part.

    bytes

    The content of the part.

    contentType

    The optional content type.

    charset

    The optional character encoding (defaults to UTF-8).

    contentId

    The optional content id.

    transferEncoding

    The optional transfer encoding.

  7. trait Client extends AutoCloseable

    Permalink

    Created by peter on 21/05/15, Atomic BITS (http://atomicbits.io).

  8. case class FileBinaryRequest(file: File) extends BinaryRequest with Product with Serializable

    Permalink
  9. case class FilePart(name: String, file: File, fileName: Option[String] = None, contentType: Option[String] = None, charset: Option[Charset] = Some(Charset.forName("UTF8")), contentId: Option[String] = None, transferEncoding: Option[String] = None) extends BodyPart with Product with Serializable

    Permalink

    name

    The name of the part.

    file

    The file.

    fileName

    The optional name of the file, if no name is given the name in 'file' is used.

    contentType

    The optional content type.

    charset

    The optional character encoding (defaults to UTF-8).

    contentId

    The optional content id.

    transferEncoding

    The optional transfer encoding.

  10. case class HeaderMap(headerList: Map[String, List[String]] = Map.empty, originalKeys: Map[String, String] = Map.empty) extends Product with Serializable

    Permalink

    Created by peter on 30/10/15.

  11. class HeaderSegment extends Segment

    Permalink
  12. sealed trait HttpParam extends AnyRef

    Permalink

    Created by peter on 27/07/15.

  13. case class InputStreamBinaryRequest(inputStream: InputStream) extends BinaryRequest with Product with Serializable

    Permalink
  14. class JsonMethodSegment[B] extends MethodSegment[B, JsValue]

    Permalink
  15. sealed trait Method extends AnyRef

    Permalink

    Created by peter on 21/05/15, Atomic BITS (http://atomicbits.io).

  16. abstract class MethodSegment[B, R] extends Segment

    Permalink
  17. class ParamSegment[T] extends Segment

    Permalink
  18. class PlainSegment extends Segment

    Permalink

    We DON'T use case classes here to hide the internals from the resulting DSL.

  19. case class RepeatedHttpParam(parameters: List[String]) extends HttpParam with Product with Serializable

    Permalink
  20. case class RequestBuilder(client: Client, reversePath: List[String] = Nil, method: Method = Get, queryParameters: Map[String, HttpParam] = Map.empty, formParameters: Map[String, HttpParam] = Map.empty, multipartParams: List[BodyPart] = List.empty, binaryBody: Option[BinaryRequest] = None, headers: HeaderMap = HeaderMap()) extends Product with Serializable

    Permalink

    Created by peter on 21/05/15, Atomic BITS (http://atomicbits.io).

  21. case class Response[T](status: Int, stringBody: Option[String], jsonBody: Option[JsValue] = None, body: Option[T] = None, headers: Map[String, List[String]] = Map.empty) extends Product with Serializable

    Permalink

    Created by peter on 21/05/15, Atomic BITS (http://atomicbits.io).

  22. sealed trait Segment extends AnyRef

    Permalink
  23. case class SingleHttpParam(parameter: String) extends HttpParam with Product with Serializable

    Permalink
  24. case class StringBinaryRequest(text: String) extends BinaryRequest with Product with Serializable

    Permalink
  25. class StringMethodSegment[B] extends MethodSegment[B, String]

    Permalink
  26. case class StringPart(name: String, value: String, contentType: Option[String] = None, charset: Option[Charset] = Some(Charset.forName("UTF8")), contentId: Option[String] = None, transferEncoding: Option[String] = None) extends BodyPart with Product with Serializable

    Permalink

    name

    The name of the part.

    value

    The content of the part.

    contentType

    The optional content type.

    charset

    The optional character encoding (defaults to UTF-8).

    contentId

    The optional content id.

    transferEncoding

    The optional transfer encoding.

  27. class TypeMethodSegment[B, R] extends MethodSegment[B, R]

    Permalink

Value Members

  1. object BinaryRequest

    Permalink
  2. object Connect extends Method with Product with Serializable

    Permalink
  3. object Delete extends Method with Product with Serializable

    Permalink
  4. object Get extends Method with Product with Serializable

    Permalink
  5. object Head extends Method with Product with Serializable

    Permalink
  6. object HttpParam

    Permalink
  7. object Opt extends Method with Product with Serializable

    Permalink
  8. object Patch extends Method with Product with Serializable

    Permalink
  9. object Post extends Method with Product with Serializable

    Permalink
  10. object Put extends Method with Product with Serializable

    Permalink
  11. object Trace extends Method with Product with Serializable

    Permalink
  12. package client

    Permalink
  13. package json

    Permalink

Ungrouped