w_transport 1.0.1 w_transport: ^1.0.1 copied to clipboard
A fluent-style, platform-agnostic library with ready to use transport classes for sending and receiving data over HTTP.
Examples #
There are 3 examples that demonstrate a wide range of use cases fulfilled by this library.
Building & Serving #
You can run a shell script from the project root to build and serve the examples:
./tool/examples.sh
This is the same as simply running
pub get && pub serve example --port 9000
.
Server Component #
Most of the examples will require a server to handle HTTP requests. You can run this server by running a shell script from the project root:
./tool/server.sh
This is the same as running
dart --checked tool/server/run.dart --proxy
.
Viewing (Compiled JS) #
Open http://localhost:9000 in your browser of choice.
Viewing (Dartium) #
dartium --checked http://localhost:9000