Open StefanOssendorf opened 9 years ago
I'll take the principal of least surprise + discoverability over DRY any day. That is, I suggest public nested enum in each MW instead of trying to share this with all of them.
This is nice MW btw, will be using it :)
For each MW an enum is probably the best solution. Thanks!
Great :-) Feedback is appreciated.
Implement header handling per header.
E.g.
@damianh Can you help me with a design decision, please?
Not all header supports all options. e.g. ContentTypeOptions only support "Overwrite" and "Ignore". ContentSecurityPolicy supports all four.
Should I split the enum into multiple? Or an public nested enum in every middleware?
Thanks in advance