Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

http

get

function get(url: string) -> HttpResponse|null

Example

let response = http::get("http://example.org/");

if !response {
    log::error("Request failed!");
    order::cancel();
}

// use response

post

function post(url: string) -> HttpResponse|null

Example

let response = http::post("https://example.org/");

if response {
    log::info(response.body);
}