Class WebRequestExtensions
Extension methods for WebRequest class.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: UnityFx.Async.Extensions
Assembly: UnityFx.Async-netstandard2.0.dll
Syntax
public static class WebRequestExtensions
Methods
| Improve this Doc View SourceGetRequestStreamAsync(WebRequest)
Returns a Stream for writing data to the Internet resource as an asynchronous operation.
Declaration
public static IAsyncOperation<Stream> GetRequestStreamAsync(this WebRequest webRequest)
Parameters
Type | Name | Description |
---|---|---|
WebRequest | webRequest | The source WebRequest. |
Returns
Type | Description |
---|---|
IAsyncOperation<Stream> | Returns IAsyncOperation<TResult> representing the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
NotImplementedException | Thrown if an attempt is made to access the method, when the method is not overridden in a descendant class. |
GetResponseAsync(WebRequest)
Begins an asynchronous request for an Internet resource.
Declaration
public static IAsyncOperation<WebResponse> GetResponseAsync(this WebRequest webRequest)
Parameters
Type | Name | Description |
---|---|---|
WebRequest | webRequest | The source WebRequest. |
Returns
Type | Description |
---|---|
IAsyncOperation<System.Net.WebResponse> | Returns IAsyncOperation<TResult> representing the asynchronous operation. |
Exceptions
Type | Condition |
---|---|
NotImplementedException | Thrown if an attempt is made to access the method, when the method is not overridden in a descendant class. |