Class PageRequest

Index

Constructor methods

Methods

Constructor methods

constructor(): PageRequest

Returns

PageRequest

Methods

public add_failed(value: (sender: any, args: SP.PageRequestFailedEventArgs) => void)

Parameters

  • value: (sender: any, args: SP.PageRequestFailedEventArgs) => void

public add_succeeded(value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void)

Parameters

  • value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void

public static doGet(url: string, expectedContentType: string, succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void, failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void)

Parameters

  • url: string
  • expectedContentType: string
  • succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void
  • failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void

public static doPost(url: string, body: string, expectedContentType: string, succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void, failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void)

Parameters

  • url: string
  • body: string
  • expectedContentType: string
  • succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void
  • failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void

public get()

public get_expectedContentType(): string

Returns

string

public get_request(): WebRequest

Returns

WebRequest

public get_url(): string

Returns

string

public post(body: string)

Parameters

  • body: string

public remove_failed(value: (sender: any, args: SP.PageRequestFailedEventArgs) => void)

Parameters

  • value: (sender: any, args: SP.PageRequestFailedEventArgs) => void

public remove_succeeded(value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void)

Parameters

  • value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void

public set_expectedContentType(value: string)

Parameters

  • value: string

public set_url(value: string)

Parameters

  • value: string