OGStudio / local-host-access

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Kotlin 78.1%Language:HTML 18.9%Language:Shell 2.4%Language:C++ 0.6%