ProxyServer class
A simple shelf
server which will proxy requests to to.
Call serve to start the server at uri. A pipeline can be added to customize the behavior of the server.
This needs some understanding of package: shelf
.
- Implemented by
Constructors
- ProxyServer(Uri uri, Uri to, [ Pipeline pipeline = const Pipeline() ])
- ProxyServer.fromParsed(ArgResults results, Uri to, [ Pipeline pipeline = const Pipeline() ])
-
Set up a ProxyServer with arguments parsed by liveReloadArgParser.
factory
Properties
Methods
-
forceClose(
) → Future - Forces the server to close.
-
serve(
String logMessage(HttpServer server)) → Future<Null> -
Starts this server at uri and will log a message returned from
logMessage
when this server is successfully started. [...] -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
other) → bool -
The equality operator. [...]
inherited
Constants
- defaultPort → const dynamic
-
8000