set the matched media type as a request attribute