LocalProxyServer class
A local HTTP proxy server implementation. Listens on a specified IP and port, accepts incoming socket connections, parses HTTP requests, and delegates video caching logic.
Constructors
- LocalProxyServer.new({String? ip, int? port})
- Constructor for LocalProxyServer. Optionally accepts an IP and port to bind the server.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ip → String?
-
Proxy Server IP address.
final
- port → int?
-
Proxy Server port number.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server ↔ ServerSocket?
-
The underlying server socket instance.
getter/setter pair
Methods
-
close(
) → Future< void> - Shuts down the proxy server and closes the socket.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send400(
Socket socket) → Future< void> - Sends a 400 Bad Request HTTP response to the client.
-
start(
) → Future< void> - Starts the proxy server. Binds to the configured IP and port, and listens for incoming connections. If the port is already in use, it will try the next port.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited