pub fn log_connection(request: &HttpRequest, session: &Session)
Expand description

Logs connection information for an incoming HTTP request.

§Arguments

  • request - A reference to the Actix web HttpRequest object.
  • session - Session struct that holds the session_mapping and session_tracker to handle sessions.

This function logs the host and user agent information of the incoming connection.