Update README.md

Commit 32736c6 · Harrison Erd · 2025-01-29T04:02:33-05:00

Changeset
32736c632333bdd9e943a604b54941b03a5b6c4b
Parents
4658f5e06e84efb1ed5b709cd74e67e93fc7f0dc

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/README.md b/README.md
index fc3e524..8e379d5 100644
--- a/README.md
+++ b/README.md
@@ -84,11 +84,11 @@ class MyApp(Server):
         return f"Form submitted by: {username}"
 
     async def submit_catch_all(self):
-        username = self.body_params.get('username', ['Anonymous'])[0]
+        username = self.body_params.get("username", ["Anonymous"])[0]
         return f"Submitted by: {username}"
 ```
 
-
+By default, MicroPie's route handlers can accept any request method, it's up to you how to handle any incoming requests! You can check the request method in the handler with the`scope["method"]`.
 ### **3. Real-Time Communication with Socket.IO**
 Because of its designed simplicity, MicroPie does not handle WebSockets out of the box. While the underlying ASGI interface can theoretically handle WebSocket connections, MicroPie’s routing and request-handling logic is designed primarily for HTTP. While MicroPie does not natively support WebSockets, you can easily integrate dedicated Websockets libraries like **Socket.IO** alongside Uvicorn to handle real-time, bidirectional communication. Check out [examples/socketio](https://github.com/patx/micropie/tree/main/examples/socketio) to see this in action.