chromium/third_party/blink/web_tests/external/wpt/client-hints/resources/script-set-dpr-header.py

def main(request, response):
    headers = [(b"Content-Type", b"text/javascript")]
    body = u'dprHeader = "%s";' % request.headers.get(b'sec-ch-dpr', '')
    return 200, headers, body