Prevent nonsense handle call #75
Replies: 2 comments
-
@bodograumann FastAPI does nothing at registering a new handler cuz it costs nothing at HTTP framework: you need no establish new connection or consumer, etc. |
Beta Was this translation helpful? Give feedback.
-
So, I create an Issue to implement this. If you can help me - it will be great! I am pretty busy with pydanticV2 migration right now 😞 |
Beta Was this translation helpful? Give feedback.
-
I just accidentally messed up the order of
broker.handle
andbroker.start
.So my handler was not actually used.
Would it be a good idea to throw an exception when registering a handler after the broker was started?
I am not sure if there are use-cases where you register additional handlers and restart the broker afterwards though.
How does FastAPI do this?
Beta Was this translation helpful? Give feedback.
All reactions