aio-libs / aio-libs/aiohttp

Raise a warning on adding duplicated resource

オープン
#3,023 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement server
主要言語
Python
スター
16.5k
フォーク
2.4k
平均マージ
17時間 22分
マージ済み PR(30日)
212

説明

Now, `add_route` merges consequenced `add_get(path, handler)` and `add_post(path, handler)` calls but doesn't do it if a resource for other path is pushed in between calls.
Also, it doesn't merge the same resource but under different names.

Let's not change behavior but raise a user warning for such cases, most likely it is the result of silly mistake/misunderstanding.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。