Add middleware docs

Đang mở
#597 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
documentation

Hướng nghiên cứu

Read the existing documentation that mentions middleware and inspect cot’s built-in middleware implementations to identify what the new page should cover. Document what middleware is, how the built-ins work, and, if appropriate, the request/response lifecycle and creating a custom middleware; done when the dedicated page explains these topics clearly.

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

Mô tả

The current documentation doesn't explain how middlewares work in cot(it only mentions it). It would be very helpful to have a dedicated page covering:

  • An overview of what middlewares are and how they function within cot
  • A list and explanation of the built-in middlewares provided out-of-the-box

Personal opinion:
Perhaps there could be an advanced section that talks about the middleware internals. This could cover topics such as how middlewares integrate into the request/response lifecycle and interact with the rest of the framework and maybe a walkthrough of how to create a custom one which would be valuable for downstream third-party library maintainers or anyone looking to understand the inner workings of cot more deeply.

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.