http

Methods
2
Fields
None

Getting one

http

Methods

MethodReturnsDescription
get(string, (Response?, string?) -> ())CallGET url, then callback(response, nil) or callback(nil, message). Returns the call, for cancel().
post(string, string, string, (Response?, string?) -> ())CallPOST url with body of contentType, then callback(response, err).

Method details

get

get: (HttpService, string, (Response?, string?) -> ()) -> Call

GET url, then callback(response, nil) or callback(nil, message). Returns the call, for cancel().

post

post: (HttpService, string, string, string, (Response?, string?) -> ()) -> Call

POST url with body of contentType, then callback(response, err).