UNPKG
as-wake
Version:
latest (1.0.0)
1.0.0
WAKE bindings for AssemblyScript
github.com/JairusSW/Wake
JairusSW/Wake
as-wake
/
assembly
/
Modules
/
HTTP.ts
10 lines
(7 loc)
•
290 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
//
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))) } }