UNPKG

as-wake

Version:

WAKE bindings for AssemblyScript

10 lines (7 loc) 290 B
// TODO: Add headers and all protocols. declare function getHTTP(url: string, callback: i32): void export namespace http { export function get(url: string, callback: (body: string) => void): void { getHTTP(url, load<i32>(changetype<usize>(callback))) } }