Skip to content

Instance Property

body

The Body. Updating this property will also update the associated transport headers.
var body: Response.Body { get set }

Discussion

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

Also be sure to set this message’s contentType property to a MediaType that correctly represents the Body.