Skip to content

Instance Method

write(_:promise:)

Writes an event to a streaming HTTP body. If the result is .end or .error, the stream ends.
func write(_ result: BodyStreamResult, promise: EventLoopPromise<Void>?)