IAsyncHttpWebRequest 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
HttpWeb 请求包装器接口。
public interface class IAsyncHttpWebRequest
public interface IAsyncHttpWebRequest
type IAsyncHttpWebRequest = interface
Public Interface IAsyncHttpWebRequest
- 派生
属性
CachePolicy |
获取或设置缓存策略 |
ContentType |
获取或设置内容类型。 例如,“application/x-www-form-urlencoded” |
Method |
获取或设置使用的方法 (GET、HEAD、POST、PUT、DELETE、TRACE 或 OPTIONS) |
Timeout |
获取或设置响应的超时 |
Url |
获取目标 URL |
方法
AddHeaders(IEnumerable<KeyValuePair<String,String>>) |
添加 HTTP 标头。 |
GetResponseAsync() |
以异步方式发送请求并获取响应。 |