Class

colossus.protocols.http

ChunkEncodingPipe

Related Doc: package http

Permalink

class ChunkEncodingPipe extends InfinitePipe[DataBuffer]

A Pipe that will take raw DataBuffers and add a http chunk header. This is needed if you are streaming out a response that is not also being streamed in (like in a proxy)

Right now this ends up copying the DataBuffer.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ChunkEncodingPipe
  2. InfinitePipe
  3. Pipe
  4. Source
  5. Sink
  6. Transport
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ChunkEncodingPipe()

    Permalink

Type Members

  1. case class Dead(reason: Throwable) extends State with Product with Serializable

    Permalink
    Definition Classes
    InfinitePipe
  2. case class Full(trigger: Trigger) extends State with Product with Serializable

    Permalink
    Definition Classes
    InfinitePipe
  3. case class Pulling(callback: (Try[Option[T]]) ⇒ Unit) extends State with Product with Serializable

    Permalink
    Definition Classes
    InfinitePipe
  4. sealed trait State extends AnyRef

    Permalink
    Definition Classes
    InfinitePipe

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(next: Source[DataBuffer]): Source[DataBuffer]

    Permalink
    Definition Classes
    Source
  4. def ->>[V, W](pipe: Pipe[V, W])(f: (DataBuffer) ⇒ Seq[V]): Pipe[DataBuffer, W]

    Permalink
    Definition Classes
    Pipe
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. object Closed extends State with Product with Serializable

    Permalink
    Definition Classes
    InfinitePipe
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def complete(): Unit

    Permalink
    Definition Classes
    ChunkEncodingPipeInfinitePipeSink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def feed(from: Source[DataBuffer], linkState: Boolean): Unit

    Permalink
    Definition Classes
    Sink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fold[U](init: U)(cb: (DataBuffer, U) ⇒ U): Callback[U]

    Permalink
    Definition Classes
    Source
  15. def foldWhile[U](init: U)(cb: (DataBuffer, U) ⇒ U)(f: (U) ⇒ Boolean): Callback[U]

    Permalink
    Definition Classes
    Source
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def isClosed: Boolean

    Permalink
    Definition Classes
    InfinitePipe
  19. def isFull: Boolean

    Permalink
    Definition Classes
    InfinitePipeSink
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isPushable: Boolean

    Permalink
    Definition Classes
    InfinitePipe
  22. def join[V, W](pipe: Pipe[V, W])(f: (DataBuffer) ⇒ Seq[V]): Pipe[DataBuffer, W]

    Permalink
    Definition Classes
    Pipe
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def pull(whenReady: (Try[Option[DataBuffer]]) ⇒ Unit): Unit

    Permalink

    Request the next value from the pipe

    Request the next value from the pipe

    Only one value can be requested at a time. Also there can only be one outstanding request at a time.

    Definition Classes
    InfinitePipeSource
  27. def pullCB(): Callback[Option[DataBuffer]]

    Permalink
    Definition Classes
    Source
  28. def push(data: DataBuffer): PushResult

    Permalink

    Attempt to push a value into the pipe.

    Attempt to push a value into the pipe.

    The value will only be successfully pushed only if there has already a been a request for data on the pulling side. In other words, the pipe will never interally queue a value.

    returns

    the result of the push

    Definition Classes
    ChunkEncodingPipeInfinitePipeSink
    Exceptions thrown

    PipeException when pushing to a full pipe

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def terminate(reason: Throwable): Unit

    Permalink
    Definition Classes
    InfinitePipeTransport
  31. def terminated: Boolean

    Permalink
    Definition Classes
    InfinitePipeTransport
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def whenPushable(f: ⇒ PushResult): PushResult

    Permalink
    Attributes
    protected
    Definition Classes
    InfinitePipe

Inherited from InfinitePipe[DataBuffer]

Inherited from Pipe[DataBuffer, DataBuffer]

Inherited from Source[DataBuffer]

Inherited from Sink[DataBuffer]

Inherited from Transport

Inherited from AnyRef

Inherited from Any

Ungrouped