aio-libs / aio-libs/aiohttp

Raise a warning on adding duplicated resource

Đang mở
#3,023 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement server
Ngôn ngữ chính
Python
Star
16.5k
Fork
2.4k
Merge trung bình
17 giờ 22 phút
Pull request đã merge (30 ngày)
212

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.