Local Host Access (LHA) is a cross-platform HTTP server for client side JS to access local host
Build stand-alone JAR file:
$ ./gradlew jar
Run stand-alone JAR file:
$ ./run/run-java
Build native desktop binary:
$ ./gradlew nativeBinaries
Run native desktop binary:
$ ./run/run-native
№ | Function | JVM | Linux | macOS | Windows | Android | iOS |
---|---|---|---|---|---|---|---|
1 | GET /path |
√ | X | √ | √ | X | X |
2 | POST /list |
√ | X | √ | X | X | X |
3 | POST /read |
√ | X | √ | X | X | X |
4 | POST /write |
√ | X | √ | X | X | X |
- [Linux, macOS] LHA uses
stat -L
command to detect if symbolic link points to a regular file or directory - In case of build problems try to leave only one subproject included in
settings.gradle.kts
like this:
//include("jvm")
include("nt")
- Launch LHA with
test/test-dir
directory as.
- Run
curl-test
orweb-test.html
to validate each function