1 2 3 4 5 6 7
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/')