IAsyncHttpWebRequest 接口

定义

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()

以异步方式发送请求并获取响应。

适用于