mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-09 16:05:20 +02:00
docs: update docs about peer_addr when bound to a UDS socket
This commit is contained in:
parent
e42cffc28d
commit
89b5b04653
@ -264,8 +264,10 @@ impl HttpRequest {
|
|||||||
///
|
///
|
||||||
/// For expanded client connection information, use [`connection_info`] instead.
|
/// For expanded client connection information, use [`connection_info`] instead.
|
||||||
///
|
///
|
||||||
/// Will return None when server listens on UDS socket or when called in unit tests unless [`TestRequest::peer_addr`] is used.
|
/// Will only return `None` when server is listening on [UDS socket] or when called in unit
|
||||||
|
/// tests unless [`TestRequest::peer_addr`] is used.
|
||||||
///
|
///
|
||||||
|
/// [UDS socket]: crate::HttpServer::bind_uds
|
||||||
/// [`TestRequest::peer_addr`]: crate::test::TestRequest::peer_addr
|
/// [`TestRequest::peer_addr`]: crate::test::TestRequest::peer_addr
|
||||||
/// [`connection_info`]: Self::connection_info
|
/// [`connection_info`]: Self::connection_info
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user