mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
* docs(docs): start implementing docs website * update video url * add autogenerated codebase docs for backend * precommit * update links * fix config and video * gh actions * rename * workdirs * path * path * fix doc1 * redo markdown * docs * change main folder name * simplify readme * add back architecture * Fix lint errors * lint * update poetry lock --------- Co-authored-by: Jim Su <jimsu@protonmail.com>
22 lines
601 B
Python
22 lines
601 B
Python
from http.server import BaseHTTPRequestHandler, HTTPServer
|
|
|
|
|
|
class HelloWorldHandler(BaseHTTPRequestHandler):
|
|
def do_GET(self):
|
|
self.send_response(200)
|
|
self.send_header('Content-type', 'text/plain')
|
|
self.end_headers()
|
|
self.wfile.write(b'Hello World\n')
|
|
|
|
|
|
def run(server_class=HTTPServer, handler_class=HelloWorldHandler, port=8000):
|
|
server_address = ('', port)
|
|
httpd = server_class(server_address, handler_class)
|
|
print(f'Starting httpd on port {port}...')
|
|
httpd.serve_forever()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
print('starting server...')
|
|
run()
|