server { bind: ("0.0.0.0", 4015) } @map(.post, "/") declare handler inspect(Any): Any @map(.get, "/echo/:data", interface: "EchoPathArguments") declare nonapi handler echo(): Any @map(.get, "/echo/*data/echo", interface: "EchoMorePathArguments") declare nonapi handler echoMore(): Any interface JsonBody { name: String age: Int } @map(.patch, "/echo/jsonBody") declare handler echoJsonBody(JsonBody): JsonBody interface FormBody { name: String avatar: File } interface FormBodyResult { name: String avatar: String } @map(.patch, "/echo/formBody") declare form handler echoFormBody(FormBody): FormBodyResult @map(path: "/echo/cookie") declare handler echoCookie(Any): Any