LEVIATHAN v962456e · 962456eee1

atlantis · Routing

class Controller

since 0.1.0-alpha.1linux

bases
IController

Methods

created

created(string location, JsonValue v) -> HttpResponse
header(Http::Context ctx, string name) -> string | None

jsonBody

jsonBody(Http::Context ctx) -> JsonValue

noContent

noContent() -> HttpResponse

notFound

notFound(string message) -> HttpResponse

ok

okText

okText(string body) -> HttpResponse

pathInt

pathInt(Http::Context ctx, string name) -> int

pathStr

pathStr(Http::Context ctx, string name) -> string

queryInt

queryInt(Http::Context ctx, string name) -> int | None

queryStr

queryStr(Http::Context ctx, string name) -> string | None

redirect

redirect(string to) -> HttpResponse