summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/loading/early-hints/resources/get-fetch-timing-and-headers.h2.py
blob: 59f67be3cf929d89ecc6ec8598ee7276b1648fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import importlib

utils = importlib.import_module("loading.early-hints.resources.utils")


def main(request, response):
    headers = [
        ("Content-Type", "application/json"),
        ("Access-Control-Allow-Origin", "*"),
    ]
    body = utils.get_request_timing_and_headers(request)
    return (200, "OK"), headers, body