| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Netty-based HTTP server and HTTP proxy module for the tinystruct framework. It provides:
mvnw -q -DskipTests packageArtifacts:
<dependency>
<groupId>org.tinystruct</groupId>
<artifactId>tinystruct-netty-http-server</artifactId>
<version>1.1.6</version>
</dependency>
Start the HTTP server on port 8080 and open the browser automatically:
bin/dispatcher start --import org.tinystruct.system.NettyHttpServer --server-port 8080bin\dispatcher.cmd start --import org.tinystruct.system.NettyHttpServer --server-port 8080Then visit http://localhost:8080.
Forward traffic from local port 81 to a remote server (default localhost:80):
bin/dispatcher start --import org.tinystruct.system.HttpProxyServer --server-port 81 --remote-server-host example.com --remote-server-port 80bin\dispatcher.cmd start --import org.tinystruct.system.HttpProxyServer --server-port 81 --remote-server-host example.com --remote-server-port 80If --remote-server-port 443 is specified, a self-signed SSL context is created for inbound TLS.
Edit src/main/resources/application.properties (values can also be overridden via CLI where supported):
Database placeholders (optional): driver, database.url, database.user, database.password, database.connections.max (H2/MySQL/sqlite/SQLServer supported via tinystruct integrations).
Messaging/SSE:
Netty HTTP server (org.tinystruct.system.NettyHttpServer):
HTTP proxy (org.tinystruct.system.HttpProxyServer):
Static files are served by org.tinystruct.handler.HttpStaticFileHandler. Place assets under your working directory; configure system.directory if needed.
Requests are routed through tinystruct’s ApplicationManager using the query (e.g., /say/Hello or /?q=say/Hello when default.url_rewrite is not enabled). The default home action is controlled by default.home.page.
Enable Netty pipeline logging via configuration or CLI:
bin/dispatcher start --import org.tinystruct.system.NettyHttpServer --logging.enabled true --logging.level INFOApache License 2.0. See LICENSE-2.0.txt.
| Back | FazBrowse Home | New Git URL |