ProxySessionManager class

Manager for proxy sessions

Constructors

ProxySessionManager.new({int maxSessionsPerProxy = 5, int maxSessionAgeSeconds = 3600, int maxSessionIdleSeconds = 600, Random? random, Logger? logger})
Creates a new ProxySessionManager

Properties

activeSessionCount int
Gets the number of active sessions
no setter
hashCode int
The hash code for this object.
no setterinherited
logger Logger?
Logger for logging operations
final
maxSessionAgeSeconds int
The maximum session age in seconds
final
maxSessionIdleSeconds int
The maximum session idle time in seconds
final
maxSessionsPerProxy int
The maximum number of sessions per proxy
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createSession({required Proxy proxy, required String domain, String? userAgent, Map<String, String>? cookies, Map<String, String>? headers}) ProxySession
Creates a new session for a proxy and domain
getSession({required Proxy proxy, required String domain}) ProxySession?
Gets a session for a proxy and domain
getSessionsForDomain(String domain) List<ProxySession>
Gets all sessions for a domain
getSessionsForProxy(Proxy proxy) List<ProxySession>
Gets all sessions for a proxy
invalidateAllSessions() → void
Invalidates all sessions
invalidateSession(String sessionId) → void
Invalidates a session
invalidateSessionsForDomain(String domain) → void
Invalidates all sessions for a domain
invalidateSessionsForProxy(Proxy proxy) → void
Invalidates all sessions for a proxy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited