@newrelic.agent.function_trace()
@allow_CORS_GET
def _document_raw(request, doc, doc_html, rendering_params):
 response = HttpResponse(doc_html)
 response['X-Frame-Options'] = 'Allow'
 response['X-Robots-Tag'] = 'noindex'
 absolute_url = urlunquote_plus(doc.get_absolute_url())
 if (absolute_url in config.KUMA_CUSTOM_SAMPLE_CSS_PATH):
  response['Content-Type'] = 'text/css; charset=utf-8'
 elif doc.is_template:
  response['Content-Type'] = 'text/plain; charset=utf-8'
 return _set_common_headers(doc, rendering_params['section'], response)

@ newrelic . agent . function_trace ( ) @ allow_CORS_GET def _document_raw ( request , doc , doc_html , rendering_params ) : response = HttpResponse ( doc_html ) response [ 'X-Frame-Options' ] = 'Allow' response [ 'X-Robots-Tag' ] = 'noindex' absolute_url = urlunquote_plus ( doc . get_absolute_url ( ) ) if ( absolute_url in config . KUMA_CUSTOM_SAMPLE_CSS_PATH ) : response [ 'Content-Type' ] = 'text/css; charset=utf-8' elif doc . is_template : response [ 'Content-Type' ] = 'text/plain; charset=utf-8' return _set_common_headers ( doc , rendering_params [ 'section' ] , response )
display a raw document .