tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

get-fetch-timing-and-headers.h2.py (329B)


      1 import importlib
      2 
      3 utils = importlib.import_module("loading.early-hints.resources.utils")
      4 
      5 
      6 def main(request, response):
      7    headers = [
      8        ("Content-Type", "application/json"),
      9        ("Access-Control-Allow-Origin", "*"),
     10    ]
     11    body = utils.get_request_timing_and_headers(request)
     12    return (200, "OK"), headers, body