Fixed HTML message formatting, Extended resolver for get, construct and transform functions, Added entire message history with aliasing for personal matrix account

This commit is contained in:
Lyncoln
2026-10-15 14:37:17 -04:00
parent 61ee8145ae
commit b5e6d4eaea
28 changed files with 169 additions and 66 deletions
Binary file not shown.
+21 -4
View File
@@ -8,7 +8,28 @@ from .createresponse import buildResponse
port = int(os.environ.get("SERVER_PORT", 19001))
from http.server import HTTPServer, BaseHTTPRequestHandler
class RequestHandler(BaseHTTPRequestHandler):
def do_POST(self):
print("POST request received")
self.send_response(200)
self.send_header("Content-Type", "application/json")
self.end_headers()
self.wfile.write(b'{"status": "ok"}')
def startServer():
server = HTTPServer(("127.0.0.1", port), RequestHandler)
print(f"Server listening on port {port}")
server.serve_forever()
def startServer2():
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(("0.0.0.0", port))
@@ -22,10 +43,6 @@ def startServer():
print("Accepting connections")
connection.settimeout(30)
class RequestHandler(BaseHTTPRequestHandler):
def do_POST(self):
print("POST request received")
try:
while True:
data = connection.recv(4096)