I'd like to implement an extension method IsJsonRequest() : bool on the HttpRequestBase type. In broad terms what should this method look like and are there any reference implementations?
This is a private API.
Edit:
Suggestion; check if the x-requested-with header is "xmlhttprequest"?