chromium/third_party/blink/web_tests/external/wpt/fetch/range/resources/stash-take.py

from wptserve.handlers import json_handler


@json_handler
def main(request, response):
    key = request.GET.first(b"key")
    return request.server.stash.take(key, b'/fetch/range/')