Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Structure

RequestBodyTransportFailed

Thrown by the read that finds the request body’s transport has failed: the client hung up part-way through the body, sent fewer bytes than it declared, or sent something the HTTP parser rejected.
struct RequestBodyTransportFailed

Overview

None of those is something the application can act on: a connection dropping mid-upload is an everyday event, and any client can truncate a body on purpose. The transport’s own error is kept in underlying. Later reads of the same body throw RequestBodyReadFailed.

Topics

Initializers

Instance Properties

Default Implementations

Relationships

Conforms To

  • AbortError
  • Swift.Copyable
  • Swift.Error
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype