UnityWebRequestExt.Send Method

Sends a UnityWebRequest asynchronously.

Namespace: UltimateXR.Extensions.Unity.IO
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Task Send(
	this UnityWebRequest self,
	CancellationToken ct
)


Parameters

 

self
Type: UnityWebRequest
Request to send
ct
Type: System.Threading.CancellationToken
Cancellation token, to cancel the operation

Return Value

Type: Task
Awaitable task that will finish when the request was sent

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityWebRequest. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ExceptionCondition
HttpUwrExceptionHttpError flag is on
NetUwrExceptionNetworkError flag is on

See Also

Reference

UnityWebRequestExt Class
UltimateXR.Extensions.Unity.IO Namespace