Possibility to suppress the HTTP Date header field
- Dominant language
- Scala
- Stars
- 196
- Forks
- 55
- Avg merge
- 4d 52m
- Merged PRs (30d)
- 74
Description
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.
Contributor guide
Research direction
Start by locating Pekko HTTP's automatic Date-header handling and the existing configuration for suppressing the Server header. Add a configuration option for omitting Date, and cover the behavior with regression tests for responses with and without the option enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100