A set of some useful libraries based on Netty4.
| version | JDK version |
|---|---|
| 4.x | JDK 21+ |
| 3.x | JDK 17+ |
| 2.x | JDK 11+ |
| older | JDK 8+ |
pom.xml
<pom>
<dependencyManagement>
<dependencies>
<!-- BOM -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libnetty-bom</artifactId>
<version>4.1.0-RC-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- HTTP server -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libnetty-http-server</artifactId>
</dependency>
</dependencies>
</pom>repositories {
mavenCentral
}
dependencies {
// BOM
implementation platform('com.github.fmjsjx:libnetty-bom:4.1.0-RC-SNAPSHOT')
// HTTP server
implementation 'com.github.fmjsjx:libnetty-http-server'
}repositories {
mavenCentral()
}
dependencies {
// BOM
implementation(platform("com.github.fmjsjx:libnetty-bom:4.1.0-RC-SNAPSHOT"))
// HTTP server
implementation("com.github.fmjsjx:libnetty-http-server")
}There are a number of modules in LibNetty, here is a quick overview:
The libnetty-fastcgi module provides codec components for Fast-CGI.
The libnetty-handler module provides additional features for netty-handler.
The libnetty-http module provides additional utility functions for HTTP/1.x.
The libnetty-http-client module provides a simplified HTTP client, supports both synchronous and asynchronous(based on JDK8+ CompletableFuture) APIs.
The libnetty-http-server module provides a simplified HTTP server framework.
The libnetty-resp module provides codec components for RESP(REdis Serialization Protocol).
The libnetty-resp3 module provides codec components for RESP3 specification.
The libnetty-transport module provides additional features, such as auto-selection of java/native transport, for netty-transport.