mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
method only for tests
This commit is contained in:
parent
f0f19c14d2
commit
6ec8352612
@ -264,7 +264,7 @@ impl<S> HttpRequest<S> {
|
|||||||
///Returns mutable Request's headers.
|
///Returns mutable Request's headers.
|
||||||
///
|
///
|
||||||
///This is intended to be used by middleware.
|
///This is intended to be used by middleware.
|
||||||
#[inline]
|
#[cfg(test)]
|
||||||
pub(crate) fn headers_mut(&mut self) -> &mut HeaderMap {
|
pub(crate) fn headers_mut(&mut self) -> &mut HeaderMap {
|
||||||
&mut self.as_mut().headers
|
&mut self.as_mut().headers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user