Class

org.http4s.blaze.util

BodylessWriter

Related Doc: package util

Permalink

class BodylessWriter extends ProcessWriter

Discards the body, killing it so as to clean up resources

Linear Supertypes
ProcessWriter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BodylessWriter
  2. ProcessWriter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BodylessWriter(headers: ByteBuffer, pipe: TailStage[ByteBuffer], close: Boolean)(implicit ec: ExecutionContext)

    Permalink

    headers

    ByteBuffer representation of Headers to send

    pipe

    the blaze TailStage which takes ByteBuffers which will send the data downstream

    ec

    an ExecutionContext which will be used to complete operations

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit val ec: ExecutionContext

    Permalink

    an ExecutionContext which will be used to complete operations

    an ExecutionContext which will be used to complete operations

    Attributes
    protected
    Definition Classes
    BodylessWriterProcessWriter
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def exceptionFlush(): Future[Unit]

    Permalink

    Called in the event of an Await failure to alert the pipeline to cleanup

    Called in the event of an Await failure to alert the pipeline to cleanup

    Attributes
    protected
    Definition Classes
    ProcessWriter
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def writeBodyChunk(chunk: ByteVector, flush: Boolean): Future[Unit]

    Permalink

    Write a ByteVector to the wire.

    Write a ByteVector to the wire. If a request is cancelled, or the stream is closed this method should return a failed Future with Cancelled as the exception

    chunk

    BodyChunk to write to wire

    returns

    a future letting you know when its safe to continue

    Attributes
    protected
    Definition Classes
    BodylessWriterProcessWriter
  23. def writeEnd(chunk: ByteVector): Future[Boolean]

    Permalink

    Write the ending chunk and, in chunked encoding, a trailer to the wire.

    Write the ending chunk and, in chunked encoding, a trailer to the wire. If a request is cancelled, or the stream is closed this method should return a failed Future with Cancelled as the exception, or a Future with a Boolean to indicate whether the connection is to be closed or not.

    chunk

    BodyChunk to write to wire

    returns

    a future letting you know when its safe to continue (if false) or to close the connection (if true)

    Attributes
    protected
    Definition Classes
    BodylessWriterProcessWriter
  24. def writeProcess(p: Process[Task, ByteVector]): Task[Boolean]

    Permalink

    Doesn't write the process, just the headers and kills the process, if an error if necessary

    Doesn't write the process, just the headers and kills the process, if an error if necessary

    p

    Process[Task, Chunk] that will be killed

    returns

    the Task which when run will send the headers and kill the body process

    Definition Classes
    BodylessWriterProcessWriter

Inherited from ProcessWriter

Inherited from AnyRef

Inherited from Any

Ungrouped