add python file

This commit is contained in:
Fraser
2023-03-24 20:59:02 -04:00
parent b116bc75a0
commit 0e74e340aa
+11
View File
@@ -0,0 +1,11 @@
# example copied from https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python
from http.server import BaseHTTPRequestHandler
class handler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-type','text/plain')
self.end_headers()
self.wfile.write('Hello, world!'.encode('utf-8'))
return