This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Move HttpContext property from OutputFormatterWriteContext to OutputFormatterCanWriteContext #5272
Closed
Description
I'm doing some resource versioning using an IOutputFormatter
and would like to provide other mechanisms of versioning than just using the Accept
header, like using a custom header, or even the URI for that matter.
This is not possible today (AFAIK) because theHttpContext
property sits in OutputFormatterWriteContext
rather than OutputFormatterCanWriteContext
.
Would it be possible to move the property up a level? See dev...khellang:move-http-context-up for an idea of what I'm talking about.