作者:小杰01234 | 来源:互联网 | 2023-10-10 15:25
Iwishtousestreamsasrecommendedbythejson.netperformancetipsdocumentation,howeverImuna
I wish to use streams as recommended by the json.net performance tips documentation, however I'm unable to find how to get a hold of the http status codes without the typical awaiting the HttpResponse.
我希望按照json.net性能提示文档的建议使用流,但是我无法找到如何获取http状态代码而没有典型的等待HttpResponse。
Is there perhaps a way of getting the status code first without reading the data? So still taking advantage of streams?
是否有一种方法可以在不读取数据的情况下首先获取状态代码?所以仍然利用流?
2 个解决方案