public void OnResponse(ResponseContext responseContext) { if (responseContext.ContentDescriptor == ContentDescriptor.PlainText) { var rewroteContent = RewriteContent(responseContext.Content); responseContext.SetContent(rewroteContent); } }