This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() { | |
fetch("fetch.xml").then(r => r.text()).then(t => console.log(t)); | |
} | |
window.addEventListener("load", init); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from http.server import HTTPServer, HTTPStatus, SimpleHTTPRequestHandler, test | |
import sys | |
from urllib.parse import urlparse | |
import os | |
class TestRequestHandler (SimpleHTTPRequestHandler): | |
def do_GET(self): | |
"""Serve a GET request.""" |