Skip to main content

get()

Last updated 1/10/2024

The

get()
is a function used on the
HTTPClient
object that will issue a
GET
request to the server and based on the mode provided will return either a HTTP response, or a headless browser page which can be interacted with. If no mode is supplied, the default is RAW.

Available

Server

Function Signature
get([mode: string,] url: string) : HTTPResponse | BrowserPage;

ParameterTypeDescription
mode
stringOptional mode type
url
stringThe URL string

Return Value

  • Returns
    HTTPResponse
    object for RAW mode.
  • Returns
    BrowserPage
    object for BROWSER mode.

Examples

get()