Add Response::remote_addr() (#489)

Fixes #488.
This commit is contained in:
Max von Forell
2022-10-03 22:29:21 +02:00
committed by GitHub
parent b0796c18f3
commit 855f20e662
4 changed files with 52 additions and 23 deletions

View File

@@ -302,6 +302,7 @@ impl<R: Read + Sized + Done + Into<Stream>> Read for PoolReturnRead<R> {
#[cfg(test)]
mod tests {
use crate::stream::remote_addr_for_test;
use crate::ReadWrite;
use super::*;
@@ -311,7 +312,7 @@ mod tests {
impl NoopStream {
fn stream() -> Stream {
Stream::new(NoopStream)
Stream::new(NoopStream, remote_addr_for_test())
}
}