mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-10-04 13:10:25 +08:00
12 lines
400 B
Python
12 lines
400 B
Python
# 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
|