Packages

  • package root
    Definition Classes
    root
  • package play

    Play framework.

    Play framework.

    Play

    http://www.playframework.com

    Definition Classes
    root
  • package api

    Contains the public API for Scala developers.

    Contains the public API for Scala developers.

    Read configuration
    val poolSize = configuration.getInt("engine.pool.size")
    Use the logger
    Logger.info("Hello!")
    Define a Plugin
    class MyPlugin(app: Application) extends Plugin
    Create adhoc applications (for testing)
    val application = Application(new File("."), this.getClass.getClassloader, None, Play.Mode.DEV)
    Definition Classes
    play
  • package http

    Contains standard HTTP constants.

    Contains standard HTTP constants. For example:

    val text = ContentTypes.TEXT
    val ok = Status.OK
    val accept = HeaderNames.ACCEPT
    Definition Classes
    api
  • object HttpEntity
    Definition Classes
    http
  • Chunked
  • Streamed
  • Strict

final case class Chunked(chunks: Source[HttpChunk, _], contentType: Option[String]) extends HttpEntity with Product with Serializable

A chunked entity.

chunks

The stream of chunks for this entity. Must be zero or more HttpChunk.Chunk elements, followed by zero or one HttpChunk.LastChunk elements. Any elements after the HttpChunk.LastChunk element will be ignored. If no HttpChunk.LastChunk element is sent, then the last chunk will contain no trailers.

contentType

The content type, if known.

Source
HttpEntity.scala
Linear Supertypes
Serializable, Product, Equals, HttpEntity, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chunked
  2. Serializable
  3. Product
  4. Equals
  5. HttpEntity
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Chunked(chunks: Source[HttpChunk, _], contentType: Option[String])

    chunks

    The stream of chunks for this entity. Must be zero or more HttpChunk.Chunk elements, followed by zero or one HttpChunk.LastChunk elements. Any elements after the HttpChunk.LastChunk element will be ignored. If no HttpChunk.LastChunk element is sent, then the last chunk will contain no trailers.

    contentType

    The content type, if known.

Value Members

  1. def as(contentType: String): Chunked

    Return this entity as the given content type.

    Return this entity as the given content type.

    Definition Classes
    ChunkedHttpEntity
  2. def asJava: http.HttpEntity.Chunked

    Convert this entity to its Java counterpart.

    Convert this entity to its Java counterpart.

    Definition Classes
    ChunkedHttpEntity
  3. val chunks: Source[HttpChunk, _]
  4. def consumeData(implicit mat: Materializer): Future[ByteString]

    Consume the data from this entity.

    Consume the data from this entity.

    Definition Classes
    HttpEntity
  5. def contentLength: None

    The content length of the entity, if known.

    The content length of the entity, if known.

    Definition Classes
    ChunkedHttpEntity
  6. val contentType: Option[String]

    The content type of the entity, if known.

    The content type of the entity, if known.

    Definition Classes
    ChunkedHttpEntity
  7. def dataStream: Repr[ByteString]

    The entity as a data stream.

    The entity as a data stream.

    Definition Classes
    ChunkedHttpEntity
  8. def isKnownEmpty: Boolean

    Whether it is known if this entity is empty or not.

    Whether it is known if this entity is empty or not.

    If this returns true, then the entity is definitely empty. If it returns false, the entity may or may not be empty.

    Definition Classes
    ChunkedHttpEntity
  9. def productElementNames: Iterator[String]
    Definition Classes
    Product