我已经使用DelegatingHandler中的详细信息构建了一个请求日志记录。我不想读取请求或响应体(在一个潜在的大容量web服务上加倍这项工作似乎很愚蠢);我所要做的就是为每个请求分配一个唯一的ID,记录URI和头;将请求ID写入另一个头中,然后记录响应(成功/失败)和发生的任何异常protected override System
我正在对一个Rest API Im运行进行一些自动监视,我需要从HttpResponseMessage对象中检索响应体。Im使用Flurl Http:https://flurl.dev/docs/fluent-http/ 我知道如何通过在http请求的末尾添加".RecieveSomeForm()“来检索响应体,但我还需要获取响应头,因为来
public class MyHandler : DelegatingHandler protected override async Task<HttpResponseMessage> SendAsyncCode that executes while sending the response - start */ /*