Documentation
Everything FileHeron does, and the exact commands to do it with. Written against fileheron_server 1.0.5.
Use it as a library
Add the package, describe the server, start it.
Published on pub.dev under the verified horizech.com publisher, MIT licensed.
The whole public API is those two names: FileHeronServer and ServerParams. Call stop() to shut it down.
Use it from the terminal
Compile once, then it is just a binary.
There are no prebuilt downloads yet — you build it yourself, which takes one command and produces a native executable with no runtime to install alongside it.
On Windows the compile step uses backslashes:
Options
Every flag, with its real default.
⚠️ These are all options rather than switches, so the boolean ones need an explicit value — -d true, not a bare -d. There is no --help.
- The port default is 80, which on macOS and Linux needs elevated privileges — pass
-p 8080unless you mean it. - Pass
-la log file. The option has no default value, and the argument parser reads it into a non-nullable string, so omitting it is not currently safe. Every example here includes it deliberately. -dis console output, not a file browser. It prints each request as it is served. Directories always resolve to theirindex.html.- HTTPS is unfinished. The certificate options exist and the package documents the feature as not yet working, so put a real proxy in front of it if you need TLS rather than relying on
-s true.
Compatibility
What it needs.
The SDK constraint predates Dart 3. If you are on a newer SDK and the resolver objects, that constraint is the reason — the repository is the place to raise it.