在coreclr / dnxCore(HTTP)Web请求供应商? [英] (http) Web request provider in coreclr/dnxCore?

查看:236
本文介绍了在coreclr / dnxCore(HTTP)Web请求供应商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可用的供应商做web请求/ GET基本的下载量 coreclr ? ( .NET核心

Is there a provider available for doing web requests/basic GET downloads in coreclr? (.net core)

两者 System.Net.Webclient 的HttpWebRequest / HttpWebResponse 所不具备的,我知道它的目的是服务内容,而不是消费,而是基本的字符串下载好像真的应该包括什么?

Both System.Net.Webclient and HttpWebRequest/HttpWebResponse aren't available, I realize it's aimed at serving content, not consuming, but basic string downloading seems like something that really should have been included?

我是不是忘了什么东西,或者是它只是直线上升不可能的?

Am I forgetting something, or is it just straight up not possible?

我可以默认为全DNX,但实在不好意思,失去跨平台的兼容性。

I can default to full dnx, but would really rather not and lose cross platform compatibility.

推荐答案

您应该使用现代的HttpClient 类,从的 System.Net.Http 上的NuGet,它支持DNXCore。

You should use the modern HttpClient class from System.Net.Http on NuGet, which supports DNXCore.

这篇关于在coreclr / dnxCore(HTTP)Web请求供应商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆