Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Possibility to suppress the HTTP Date header field

Đang mở
#983 3 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
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
scala
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu bằng cách xác định cơ chế xử lý Date-header tự động của Pekko HTTP và cấu hình hiện có để loại bỏ Server header. Thêm một tùy chọn cấu hình để bỏ qua Date, và bao quát hành vi này bằng các bài kiểm thử hồi quy cho các responses khi tùy chọn được bật và khi không được bật.

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

Mô tả

I am writing a small application that emulates electrical meters like the Everhome EcoTracker. Therefore, I am using Pekko and Pekko Http.

The emulated EcoTracker device has the absolute non-standard behavior of not providing a Date header field in its HTTP responses. I guess the main reason for that is that the device has no date/time information. Unfortunately, some battery storages rely on an HTTP response with exactly the two HTTP header fields content-type and content-length.

With the current Pekko HTTP version, I am not able to suppress the Date header field. It is always automatically added. I am thinking about an additional configuration parameter that allows suppressing the Date header in a similar manner as it is possible with der Server header field.

I would volunteer to implement that feature and provide a PR. I just wanted to first check if such a PR has the chance to be accepted or if it would be refused since such a behavior is absolutely non-standard.

Ngôn ngữ chính
Scala
Star
196
Fork
56
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
43

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 apache/pekko-http

Tất cả issue của apache/pekko-http

Issue tương tự

Thêm issue về Scala

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.