Skip to content

Structure

Response.Body

Represents a Response’s body.
struct Body

Overview

let body = Response.Body(string: "Hello, world!")

This can contain any data (streaming or static) and should match the message’s "Content-Type" header.

Topics

Initializers

Instance Properties

Instance Methods

Type Properties

Relationships

Conforms To

  • Swift.CustomStringConvertible
  • Swift.ExpressibleByExtendedGraphemeClusterLiteral
  • Swift.ExpressibleByStringLiteral
  • Swift.ExpressibleByUnicodeScalarLiteral
  • Swift.Sendable
  • Swift.SendableMetatype