Skip to content

Local Host Access (LHA) is a cross-platform HTTP server for client side JS to access local host

License

Notifications You must be signed in to change notification settings

OGStudio/local-host-access

Repository files navigation

Local Host Access (LHA) is a cross-platform HTTP server for client side JS to access local host

Java host

Build stand-alone JAR file:

$ ./gradlew jar

Run stand-alone JAR file:

$ ./run/run-java

macOS host

Build native desktop binary:

$ ./gradlew nativeBinaries

Run native desktop binary:

$ ./run/run-native

Current availability of functions

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

Notes

  • [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")

Test

  1. Launch LHA with test/test-dir directory as .

launch-lha

  1. Run curl-test or web-test.html to validate each function

web-test

About

Local Host Access (LHA) is a cross-platform HTTP server for client side JS to access local host

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published