HttpWebRequest的VS WebClient类谁更好 [英] HttpWebRequest Vs webclient class who is better

查看:425
本文介绍了HttpWebRequest的VS WebClient类谁更好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/1694388/webclient-vs-httpwebrequest-httpwebresponse\">WebClient主场迎战的HttpWebRequest / HttpWebResponse

我无法猜测谁是更好的。

I can't guess who is better

HttpWebRequest的或的 WebClient的

您可以给我建议在性能方面哪一个更好

Can you suggest me which one is better in terms of performance

推荐答案

我建议你测试性能瓦特/你想在这两种情况下该怎么做。我相信,尽管这WebClient的很简单,就是引擎盖下实现HttpWebRequest的一个帮手。

I'd recommend testing the performance w/ what you want to do in both instances. I believe though that WebClient is simply a helper that implements HttpWebRequest under the hood.

这篇关于HttpWebRequest的VS WebClient类谁更好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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