Functions

Net.httpRequest(url, callback, options)

void

Performs HTTP request

Parameters
  • url: String

    HTTP url to query

  • callback: Function (optional)

    Function to be called on completion

  • options: Net.HttpRequestOptions (optional)

    Advanced settings

Net.httpRequestAsync(url, options)

Promise

Performs an asyncronous HTTP request

Parameters
Returns
  • Promise

Net.sendMail(mailServerAddress, from, to, title, body, callback, options)

void

Send e-mail using specified e-mail server

Parameters
  • mailServerAddress: String

    Address of mail server to use

  • from: String

    From address of e-mail message

  • to: String|Array

    To address or list of those

  • title: String

    Message title

  • body: String

    Message body

  • callback: Function (optional)

    Function to be called on completion

  • options: Net.SendMailOptions (optional)

    Advanced settings

Net.sendMailAsync(mailServerAddress, from, to, title, body, options)

Promise

Send e-mail using specified e-mail server

Parameters
  • mailServerAddress: String

    Address of mail server to use

  • from: String

    From address of e-mail message

  • to: String|Array

    To address or list of those

  • title: String

    Message title

  • body: String

    Message body

  • options: Net.SendMailOptions (optional)

    Advanced settings

Returns
  • Promise