dummy.py (362B)
1 import json 2 3 4 def main(request, response): 5 response.headers.set(b"Content-Type", b"application/json") 6 response.headers.set(b"Cache-Control", b"no-cache") 7 response.content = json.dumps({ 8 "status": "OK", 9 "location": { 10 "lat": 37.41857, 11 "lng": -122.08769, 12 }, 13 "accuracy": 42, 14 }).encode("utf-8")