pub fn log_connection(
request: &HttpRequest,
session: &Session,
) -> (String, String)Expand description
Logs connection information for an incoming HTTP request.
§Arguments
request- A reference to the Actix webHttpRequestobject.session- Session struct that holds thesession_mappingandsession_trackerto handle sessions.
This function logs the host and user agent information of the incoming connection.
§Returns
Returns a tuple of the host, and the last streamed file path.