如何根据contentType处理webresponse

时间:2018-03-09 10:55:43

标签: c# web httpresponse

我想根据内容类型处理响应。有没有比编写response.ContentType ==“application / x-zipcompressed”更好的方法。我的意思是我可以有rar或zip。我想知道它是否是一个正确的解决方案,以检查它获得一个字符串。

1 个答案:

答案 0 :(得分:0)

相关问题