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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
SwaggerResponse.HeadersisIReadOnlyDictionary<string,IEnumerable<string>>.Problem
Accessing headers from from
SwaggerResponseis really unergonomical, compared toHttpResponseMessage.To get Cache-Control MaxAge in
HttpResponseMessage:httpResponseMessage.Headers.CacheControl.MaxAgeTo 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