Returning Response Headers as out variables in the API definition #1994
fmartinez-incomm
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm in quite a pickle here, and I think this would be the answer.
I want to:
A. This leaves me with ApiResponse or HttpResponseMessage types
Task<ResponseModel> ApiCall( [Body] RequestModel, [Header(Name="Header-Name")] out headerName)
A. This would keep the error handling uniform, and be able to get header values while still leaving all the plumbing to Refit
Beta Was this translation helpful? Give feedback.
All reactions