Packages

c

org.http4s.blazecore.util

BodylessWriter

class BodylessWriter extends ProcessWriter

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

Source
BodylessWriter.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BodylessWriter
  2. ProcessWriter
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  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)

    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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from BodylessWriter to any2stringadd[BodylessWriter] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BodylessWriter, B)
    Implicit
    This member is added by an implicit conversion from BodylessWriter to ArrowAssoc[BodylessWriter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. implicit val ec: ExecutionContext
    Attributes
    protected
    Definition Classes
    BodylessWriterProcessWriter
  9. def ensuring(cond: (BodylessWriter) ⇒ Boolean, msg: ⇒ Any): BodylessWriter
    Implicit
    This member is added by an implicit conversion from BodylessWriter to Ensuring[BodylessWriter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (BodylessWriter) ⇒ Boolean): BodylessWriter
    Implicit
    This member is added by an implicit conversion from BodylessWriter to Ensuring[BodylessWriter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): BodylessWriter
    Implicit
    This member is added by an implicit conversion from BodylessWriter to Ensuring[BodylessWriter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): BodylessWriter
    Implicit
    This member is added by an implicit conversion from BodylessWriter to Ensuring[BodylessWriter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def exceptionFlush(): Future[Unit]

    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
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from BodylessWriter to StringFormat[BodylessWriter] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  29. def writeBodyChunk(chunk: ByteVector, flush: Boolean): Future[Unit]

    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
  30. def writeEnd(chunk: ByteVector): Future[Boolean]

    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
  31. def writeProcess(p: EntityBody): Task[Boolean]

    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
  32. def [B](y: B): (BodylessWriter, B)
    Implicit
    This member is added by an implicit conversion from BodylessWriter to ArrowAssoc[BodylessWriter] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ProcessWriter

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BodylessWriter to any2stringadd[BodylessWriter]

Inherited by implicit conversion StringFormat from BodylessWriter to StringFormat[BodylessWriter]

Inherited by implicit conversion Ensuring from BodylessWriter to Ensuring[BodylessWriter]

Inherited by implicit conversion ArrowAssoc from BodylessWriter to ArrowAssoc[BodylessWriter]

Ungrouped