Share via


WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestIntegrity Method

Definition

Configures a value for the 'integrity' option for the HTTP request.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpRequestMessage ^ SetBrowserRequestIntegrity(System::Net::Http::HttpRequestMessage ^ requestMessage, System::String ^ integrity);
public static System.Net.Http.HttpRequestMessage SetBrowserRequestIntegrity (this System.Net.Http.HttpRequestMessage requestMessage, string integrity);
static member SetBrowserRequestIntegrity : System.Net.Http.HttpRequestMessage * string -> System.Net.Http.HttpRequestMessage
<Extension()>
Public Function SetBrowserRequestIntegrity (requestMessage As HttpRequestMessage, integrity As String) As HttpRequestMessage

Parameters

integrity
String

The subresource integrity descriptor.

Returns

The HttpRequestMessage.

Remarks

See https://developer.mozilla.org/en-US/docs/Web/API/Request/integrity.

Applies to