CommonMiddlware for enabled-by-default middlewares

Đang mở
#637 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by reviewing the project template or boilerplate and the existing enabled-by-default middleware setup, then inspect config.toml for configuration patterns. The work is done when CommonMiddleware consolidates the default middlewares and each child middleware can be enabled or disabled through configuration.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement good first issue
Problem statement

The set of middlewares that we have enabled by default keeps growing (the latest one is #633). Eventually, the project template/boilerplate code will grow a lot.

Proposed solution

Let's create a "CommonMiddleware" (akin to Django's CommonMiddleware) that just consolidates the enabled-by-default middlewares.

We should also have a flag in config.toml that allows to enable or disable each child middleware from CommonMiddleware.

Alternatives considered

No response

Drawbacks

No response

Additional context

No response

Ngôn ngữ chính
Rust
Star
1.1k
Fork
57
Merge trung bình
17 giờ 39 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cot-rs/cot

Tất cả issue của cot-rs/cot

Issue tương tự

Thêm issue về Rust

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.