1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package example:api; interface http { record request { method: string, path: string, body: list<u8>, } record response { status: u16, body: list<u8>, } handle: func(request: request) -> response; } world api { export http; }