Response

struct Response

A numeric status and UTF-8 body for the built-in plain-text renderer.

Headers are not stored here: HttpServer.render always supplies content type, content length, and Connection: close.

Properties

let status: Int

The numeric HTTP status code.

let body: String

The UTF-8 response body.