Structure
Response.Body.AlreadyConsumedError
Thrown when a streaming body is read a second time after being streamed away.
struct AlreadyConsumedError
Overview
A stream’s callback runs once. collect(max:) keeps the bytes, so every later read replays them; withStreamingBytes(_:) hands them to its caller and keeps nothing, so there is nothing left to read - and a source like a network body cannot be iterated again. Collect first if the bytes are needed more than once.
Conforms to AbortError so a handler that lets it propagate fails that one request rather than the process.
Topics
Initializers
Instance Properties
Relationships
Conforms To
AbortErrorSwift.CustomStringConvertibleSwift.EquatableSwift.ErrorSwift.SendableSwift.SendableMetatype