Request

struct Request

The original request bytes plus request-line fields parsed by the caller.

This type does not parse or validate headers, HTTP versions, or bodies. It is a small transport for the server's current GET-only routing surface.

Properties

let raw: String

The unparsed HTTP request text.

let method: String

The HTTP method token from the request line.

let path: String

The request-target path from the HTTP request line.