使用Flurl从API获取响应。
var response = await url.WithClient(fc)
.WithHeader("Authorization", requestDto.ApiKey)
.GetJsonAsync<T>();
dynamic httpResponse = response.Result;
但我无法访问 httpResponse.Headers。
在使用 GetJsonAsync 时如何访问响应头。
GetJsonAsync
的情况下可以获取响应头。 - Todd Menier