get()
Last updated 24/10/2023
The get()
is a function that will issue a get
request to the server and based on the mode provided will return either a HTTPResponse, or a headless browser page which can be interacted
with. If no mode is supplied, the default is RAW.
Server
Function Signature
get([mode: string,] url: string) : HTTPResponse | BrowserPage;
Parameter | Type | Description |
---|---|---|
mode | string | Optional mode type. |
url | string | The URL string. |
Return Value
Returns HTTPResponse
object for RAW mode.
Returns BrowserPage
object for BROWSER mode.