Pular para o conteúdo principal

Request

Construção

const r = new Request();

Propriedades

  • keepalive (boolean)
  • useragent (string)
  • userpwd (string)
  • headers (string[])

Métodos

get

get(url);
head(url);

post

post(url, data);

download

download(url, fname);

Asynchronous Métodos

asyncGet

asyncGet(url);

asyncDownload

asyncDownload(url, fname);

ready

ready(timeout?, conn_timeout?);

getAsyncData

getAsyncData();

getAsyncSize

getAsyncSize();