hide write_date_header

This commit is contained in:
Rob Ede 2022-02-04 20:23:01 +00:00
parent cd16929b0e
commit 36b8a7602a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,6 @@
## Unreleased - 2021-xx-xx ## Unreleased - 2021-xx-xx
### Added ### Added
- Implement `From<Vec<u8>>` for `Response<Vec<u8>>`. [#2625] - Implement `From<Vec<u8>>` for `Response<Vec<u8>>`. [#2625]
- Expose `ServiceConfig::write_date_header`. [#2625]
### Changed ### Changed
- `error::DispatcherError` enum is now marked `#[non_exhaustive]`. [#2624] - `error::DispatcherError` enum is now marked `#[non_exhaustive]`. [#2624]

View File

@ -108,6 +108,7 @@ impl ServiceConfig {
/// ///
/// Low-level method that utilizes the built-in efficient date service, requiring fewer syscalls /// Low-level method that utilizes the built-in efficient date service, requiring fewer syscalls
/// than normal. Note that a CRLF (`\r\n`) is included in what is written. /// than normal. Note that a CRLF (`\r\n`) is included in what is written.
#[doc(hidden)]
pub fn write_date_header(&self, dst: &mut BytesMut, camel_case: bool) { pub fn write_date_header(&self, dst: &mut BytesMut, camel_case: bool) {
let mut buf: [u8; 37] = [0; 37]; let mut buf: [u8; 37] = [0; 37];