Adam Hopkins

Results 354 comments of Adam Hopkins

Yes: https://crowdin.com/project/sanic-user-guide

That seems like a reasonable place to put it. These should all be acceptable: ```python @app.get(r"/") @app.get(r"/") @app.get(r"/") @app.get(r"/") ``` 1. matching on the full pattern 2. defining a *single*...

> @ChihweiLHBird you mean directly get the name via Path(path).name? yes

The issue happens when there is not a line of text before or after the column separation. This is a known thing, so it's a matter of spotting the issue...

```python from sanic import Request, Sanic, json from sanic.signals import Event app = Sanic(__name__) @app.get("/") async def handler(request: Request): return json({"foo": "bar"}) @app.signal(Event.HTTP_LIFECYCLE_READ_HEAD) async def http_lifecycle_read_head(**kwargs): print("HTTP_LIFECYCLE_READ_HEAD", kwargs) @app.signal(Event.HTTP_LIFECYCLE_READ_BODY) async...

Yes, a flowchart makes sense.

> I can only see one of them, unless put a POST request handler on the route... Not sure what I missed. There is no body to read (usually) on...

I am not entirely sure what you are trying to achieve. Maybe `main_process_start`? https://sanicframework.org/en/guide/basics/listeners.html

I don't think that is a tuple that can be deconstructed. You'd have to use `route.uri`. I'll post a fix tomorrow.