mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
update api doc example for client and add panic info for connection_info
This commit is contained in:
@ -186,6 +186,9 @@ impl HttpRequest {
|
||||
}
|
||||
|
||||
/// Get *ConnectionInfo* for the current request.
|
||||
///
|
||||
/// This method panics if request's extensions container is already
|
||||
/// borrowed.
|
||||
#[inline]
|
||||
pub fn connection_info(&self) -> Ref<ConnectionInfo> {
|
||||
ConnectionInfo::get(self.head(), &*self.app_config())
|
||||
|
Reference in New Issue
Block a user