Skip to content

A set of some useful libraries based on netty-4.x.

License

Notifications You must be signed in to change notification settings

fmjsjx/libnetty

Repository files navigation

LibNetty Project

A set of some useful libraries based on netty4.1.x.

Since version 3.0, All modules are compiled based on JDK-17.

Add Dependencies

Add Maven Dependencies

pom.xml

<pom>
  <dependencyManagement>
    <dependencies>
      <!-- BOM -->
      <dependency>
        <groupId>com.github.fmjsjx</groupId>
        <artifactId>libnetty-bom</artifactId>
        <version>3.7.4</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>

Add Gradle Dependencies

Groovy DSL

repositories {
    mavenCentral
}

dependencies {
    // BOM
    implementation platform('com.github.fmjsjx:libnetty-bom:3.7.4')
    // HTTP server
    implementation 'com.github.fmjsjx:libnetty-http-server'
}

Kotlin DSL

repositories {
    mavenCentral()
}

dependencies {
    // BOM
    implementation(platform("com.github.fmjsjx:libnetty-bom:3.7.4"))
    // HTTP server
    implementation("com.github.fmjsjx:libnetty-http-server")
}

Modules

There are a number of modules in LibNetty, here is a quick overview:

libnetty-fastcgi

The libnetty-fastcgi module provides codec components for Fast-CGI.

libnetty-handler

The libnetty-handler module provides additional features for netty-handler.

libnetty-http

The libnetty-http module provides additional utility functions for HTTP/1.x.

libnetty-http-client

The libnetty-http-client module provides a simplified HTTP client, supports both synchronous and asynchronous(based on JDK8+ CompletableFuture) APIs.

libnetty-http-server

The libnetty-http-server module provides a simplified HTTP server framework.

libnetty-resp

The libnetty-resp module provides codec components for RESP(REdis Serialization Protocol).

libnetty-resp3

The libnetty-resp3 module provides codec components for RESP3 specification.

libnetty-transport

The libnetty-transport module provides additional features, such as auto-selection of java/native transport, for netty-transport.