如何在服务器端读取HttpRequestMessage.Options

问题描述 投票:0回答:1

假设我发送一些像这样的选项:

var request = new HttpRequestMessage { RequestUri = "https://...", ... };
request.Options.Set(new HttpRequestOptionsKey<string>("name1111111"), "value11111111");
new HttpClient().SendAsync(request);

如何在服务器端读取

Options
数据?

c# asp.net-core
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.