ulteam-scripts FetchHelper

FetchHelper class

Send HTTP requests by fetch API

Methods

Name Returns Static Description
sendGetRequest<TResponse>(pageUrl: string, serverRelativeUrl: undefined | string) Promise<IWebResponse<TResponse>> Static Send GET request.
pageUrl: Method url
serverRelativeUrl: Server relative url
sendPostRequest<TResponse>(pageUrl: string, serverRelativeUrl: undefined | string, body: any) Promise<IWebResponse<TResponse>> Static Send POST request with JSON body.
pageUrl: Method url
serverRelativeUrl: Server relative url
body: JSON string

Updated: