I would like to know how to add items to signedheaders. #712
-
I found this library for aws s4 authentication. I was following along with the sample, but I need to add an optional entry other than host to the signedheaders. However, I could not find a way to add the item in postasync. Could you please tell me how to add arbitrary items to signedheaders to solve the above problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @riruo. The API of this library is pretty much the same as the API of |
Beta Was this translation helpful? Give feedback.
Hi @riruo.
The API of this library is pretty much the same as the API of
HttpClient
, and if you wan't to add e.g. headers to a request you create an instance ofHttpRequestMessage
where both method and headers are specified. You then pass the request representation to theSendAsync
overload. Will this work for you?