INNER CODE UNIT · Python

close_session

BlessedRebuS/Krawl · src/database/core.py:277

    def close_session(self) -> None:
        """Close the current thread-local session."""
        if self._initialized:
            self._Session.remove()

    def persist_access(
        self,
        ip: str,
        path: str,
        user_agent: str = "",
        method: str = "GET",
        is_suspicious: bool = False,
        is_honeypot_trigger: bool = False,
        attack_types: list[str] | None = None,
        matched_patterns: dict[str, str] | None = None,
        raw_request: str | None = None,
        referer: str | None = None,
        file_payloads: list[dict] | None = None,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…