This change simplifies InputFormatterContext/OutputFormatterContext by swapping ActionContext for HttpContext. This change is important especially for InputFormatterContext as it decouples ModelState from ActionContext - allowing us to fix a related bug where the _wrong_ ModelState can be passed in for a TryUpdateModel operation. |
||
|---|---|---|
| .. | ||
| Controllers | ||
| Models | ||
| wwwroot | ||
| ContentNegotiationWebSite.xproj | ||
| CustomFormatter.cs | ||
| PlainTextFormatter.cs | ||
| Startup.cs | ||
| VCardFormatter_V3.cs | ||
| VCardFormatter_V4.cs | ||
| project.json | ||
| readme.md | ||
readme.md
ContentNegotiationWebSite
This web site illustrates in depth how MVC performs output content negotiation based on the input headers and content. It also demonstrates various options available to participate in content negotiation process.