system.net.http.httprequestmessage具有version属性,我认为它是请求的http版本,但在windows.web.http.httprequestmessage中找不到相同的属性。如果这不是设置httprequest版本的正确属性,那么它是什么?
最佳答案
我相信你可以这样做:
HttpBaseProtocolFilter filter = new HttpBaseProtocolFilter();
filter.MaxVersion = HttpVersion.Http11;
HttpClient client = new HttpClient(filter);
HttpBaseProtocolFilter.MaxVersion