In a UWP application, I am using Refit
REST library. I need my request header to be dynamic. For that I am following below approach:
[Get("/users/{user}")]
Task<User> GetUser(string user, [HeaderCollection] IDictionary<string, string> headers);
This is giving the error
The type or namespace name 'HeaderCollection' could not be found (are you missing a using directive or an assembly reference?)
.
I am using the latest Refit version v5.2.4. Why is this happening? Do I need to import any additional namespace?