Function rustream::squire::custom::log_connection

source ·
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 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.

§Returns

Returns a tuple of the host, and the last streamed file path.