Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SigaaPage

Response page of sigaa.

Hierarchy

  • SigaaPage

Implements

Index

Constructors

constructor

Properties

Private Optional _$

_$: Root

Current cheerio instance.

Private Optional _bodyDecoded

_bodyDecoded: string

Page body with HTML encoded characters replaced.

Private Optional _viewState

_viewState: string

current page view state.

Readonly body

body: string

Readonly headers

headers: Record<string, undefined | string | string[]>

modifiedAt

modifiedAt: number

Optional Readonly requestBody

requestBody: string | Buffer

Only if request method is POST.

Readonly requestOptions

requestOptions: HTTPRequestOptions

Page request http options.

This is the object that was passed to the node to make the request.

Readonly statusCode

statusCode: number

Readonly url

url: URL

Accessors

$

  • get $(): Root

bodyDecoded

  • get bodyDecoded(): string

method

requestHeaders

  • get requestHeaders(): Record<string, string>

viewState

  • get viewState(): undefined | string

Methods

Private checkPageStatusCodeAndExpired

  • checkPageStatusCodeAndExpired(): void

parseJSFCLJS

  • parseJSFCLJS(javaScriptCode: string): SigaaForm
  • Extracts the javascript function JSFCLJS from the page, this function on the page redirects the user to another page using the POST method, often this function is in the onclick attribute in some element.

    Parameters

    • javaScriptCode: string

    Returns SigaaForm

    Object with URL action and POST values equivalent to function

Generated using TypeDoc