Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
SwaggerResponse.Headers
isIReadOnlyDictionary<string,IEnumerable<string>>
.Problem
Accessing headers from from
SwaggerResponse
is really unergonomical, compared toHttpResponseMessage
.To get Cache-Control MaxAge in
HttpResponseMessage
:httpResponseMessage.Headers.CacheControl.MaxAge
To get Cache-Control MaxAge in 'SwaggerResponse' (hoping it works and a dozen unit tests):
Question
Is there an easier way? Or should I open a feature request?
Beta Was this translation helpful? Give feedback.
All reactions