WebClient.GetHeadersAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
GetHeadersAsync(String, Object)
Begins asynchronous GetHeaders operation. Downloads headers for provided URI using HEAD request.
Declaration
public Task<WebHeaderCollection> GetHeadersAsync(string uri, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | URI to retrieve headers from. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<WebHeaderCollection> | Response headers collection. |
GetHeadersAsync(Uri, Object)
Begins asynchronous GetHeaders operation. Downloads headers for provided URI using HEAD request.
Declaration
public Task<WebHeaderCollection> GetHeadersAsync(Uri uri, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | URI to retrieve headers from. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<WebHeaderCollection> | Response headers collection. |