HttpRequestMessage
一条HTTP请求消息
构造函数
new HttpRequestMessage()new HttpRequestMessage(method: HttpMethod, requestUri: string)methodHTTP方法(可以为以下的值)HttpMethod.DeleteHttpMethod.GetHttpMethod.HeadHttpMethod.OptionsHttpMethod.PatchHttpMethod.PostHttpMethod.PutHttpMethod.Tracenew HttpMethod(method: string)使用指定的HTTP方法初始化HttpMethod类的新实例
requestUri请求发送到的URI
属性
Content
HTTP消息的内容
Headers
HttpResponseHeaders
HTTP内容标头
Method
HttpMethod
请求消息使用的HTTP方法