mirror of https://github.com/fafhrd91/actix-web
hide write_date_header
This commit is contained in:
parent
cd16929b0e
commit
36b8a7602a
|
@ -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]
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue