post(url,configuration,options)

Note: The SharePoint Framework is currently in preview and is subject to change. SharePoint Framework client-side web parts are not currently supported for use in production environments.

Calls fetch(), but sets the method to 'POST'.

Signature: @override public post(url: string, configuration: SPHttpClientConfiguration, options: ISPHttpClientOptions): Promise<SPHttpClientResponse>;

Returns: Promise<SPHttpClientResponse>

a promise that will return the result

Parameters

Parameter Type Description
url string the URL to fetch
configuration SPHttpClientConfiguration determines the default behavior of SPHttpClient; normally this should be the latest version number from SPHttpClientConfigurations
options ISPHttpClientOptions additional options that affect the request