refit
refit copied to clipboard
Add handlers to the interface method parameters and headers before generating the HttpRequestMessage
I have an API request model like
Body:
{ userId:10001, amont:10, sign:"xxxxxx" }
When I write the business logic, I don't care about the generation of the sign field
Describe the solution you'd like
Provide a handler that performs a second processing of the parameters and headers before generating the httprequest
Describe alternatives you've considered
I can only use HttpMessageHandler to deserialize the request and process the sign parameter
Describe suggestions on how to achieve the feature
Additional context