de.androbit:nibbler-netty

nibbler http micro-service library

License

License

Categories

Categories

Net Netty Networking
GroupId

GroupId

de.androbit
ArtifactId

ArtifactId

nibbler-netty
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

jar
Description

Description

nibbler http micro-service library

Download nibbler-netty

How to add to project

<!-- https://jarcasting.com/artifacts/de.androbit/nibbler-netty/ -->
<dependency>
    <groupId>de.androbit</groupId>
    <artifactId>nibbler-netty</artifactId>
    <version>0.4</version>
</dependency>
// https://jarcasting.com/artifacts/de.androbit/nibbler-netty/
implementation 'de.androbit:nibbler-netty:0.4'
// https://jarcasting.com/artifacts/de.androbit/nibbler-netty/
implementation ("de.androbit:nibbler-netty:0.4")
'de.androbit:nibbler-netty:jar:0.4'
<dependency org="de.androbit" name="nibbler-netty" rev="0.4">
  <artifact name="nibbler-netty" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.androbit', module='nibbler-netty', version='0.4')
)
libraryDependencies += "de.androbit" % "nibbler-netty" % "0.4"
[de.androbit/nibbler-netty "0.4"]

Dependencies

compile (3)

Group / Artifact Type Version
de.androbit : nibbler-core jar 0.4
io.reactivex : rxnetty jar 0.4.0
org.slf4j : slf4j-api jar 1.7.7

provided (3)

Group / Artifact Type Version
io.reactivex : rxjava jar 1.0.0-rc.10
io.netty : netty-codec-http jar 4.0.21.Final
io.netty : netty-transport-native-epoll jar 4.0.21.Final

test (5)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.7
junit : junit jar 4.11
org.assertj : assertj-core jar 1.7.0
org.mockito : mockito-all jar 1.10.8
com.jayway.restassured : rest-assured jar 2.4.0

Project Modules

There are no modules declared in this project.

nibbler

nibbler

nibbler is a HTTP micro-service DSL + library for Java 8 or higher based on RxNetty, the RxJava adapter for Netty developed by Netflix.

Download

The current version is available in the maven central repository

Hello World

import de.androbit.nibbler.RestHttpServerConfiguration;
import de.androbit.nibbler.RestServiceBuilder;
import de.androbit.nibbler.json.JacksonConverter;
import de.androbit.nibbler.netty.NettyHttpServer;

import static de.androbit.nibbler.json.JsonSupport.json;

public class JsonExample extends RestServiceBuilder {
  @Override
  public void define() {
    path("/json").get((request, response) -> {
      return response.with(json("Hello World!"));
    });
  }

  public static void main(String[] args) {
    RestHttpServerConfiguration restHttpServerConfiguration = new RestHttpServerConfiguration()
      .withService(new JsonExample())
      .withConverter(new JacksonConverter());

    new NettyHttpServer()
      .startAndWait(restHttpServerConfiguration);
  }
}

Documentation

Check Read The Docs for examples and documentation.

Versioning

Starting with version 1.0.0, nibbler will follow semantic versioning. During the 0.x releases, the minor (.x) releases may include breaking changes.

License

nibbler is published under the terms of the Apache 2.0 License. See the LICENSE file.

Versions

Version
0.4
0.3
0.2