Skip to main content

Request

Construction

const request = new Request();

Properties

  • keepalive: bool
  • useragent: string
  • userpwd: string
  • headers: string array

Methods

get

get(url);
head(url);

post

post(url, data);

download

download(url, fname);

Asynchronous methods

asyncGet

asyncGet(url);

asyncDownload

asyncDownload(url, fname);

ready

ready(timeout?, conn_timeout?);

getAsyncData

getAsyncData();

getAsyncSize

getAsyncSize();