refit icon indicating copy to clipboard operation
refit copied to clipboard

Add handlers to the interface method parameters and headers before generating the HttpRequestMessage

Open scrapstation opened this issue 2 years ago • 0 comments

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

scrapstation avatar Nov 19 '23 15:11 scrapstation