Skip to content

Protocol

AsyncBodyStreamWriter

A type that represents the writable handle of a streamed Response body
protocol AsyncBodyStreamWriter : Sendable

Topics

Instance Methods

  • write(_:)
    Writes an event to a streaming HTTP body. If the result is .end or .error, the stream ends.
  • writeBuffer(_:)
    Writes a ByteBuffer to the stream. Provides a default implementation that calls itself using BodyStreamResult

Relationships

Inherits From

  • Swift.Sendable
  • Swift.SendableMetatype