Java os process 1.0-1

Java os process

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

com.payneteasy
Идентификатор

Идентификатор

http-server
Последняя версия

Последняя версия

1.0-1
Дата

Дата

Тип

Тип

pom
Описание

Описание

Java os process 1.0-1
Java os process
Ссылка на сайт

Ссылка на сайт

https://github.com/evsinev/http-server
Система контроля версий

Система контроля версий

https://github.com/evsinev/http-server.git

Скачать http-server

Имя Файла Размер
http-server-1.0-1.pom 10 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.payneteasy/http-server/ -->
<dependency>
    <groupId>com.payneteasy</groupId>
    <artifactId>http-server</artifactId>
    <version>1.0-1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.payneteasy/http-server/
implementation 'com.payneteasy:http-server:1.0-1'
// https://jarcasting.com/artifacts/com.payneteasy/http-server/
implementation ("com.payneteasy:http-server:1.0-1")
'com.payneteasy:http-server:pom:1.0-1'
<dependency org="com.payneteasy" name="http-server" rev="1.0-1">
  <artifact name="http-server" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.payneteasy', module='http-server', version='1.0-1')
)
libraryDependencies += "com.payneteasy" % "http-server" % "1.0-1"
[com.payneteasy/http-server "1.0-1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • http-server-api
  • http-server-impl
  • http-server-integration-test

http-server

The simplest http server.

Features:

  • no dependecies
  • ability to run on Android
  • small footprint

How to add it into your app

Maven

<repositories>
    <repository>
        <id>pne</id>
        <name>payneteasy repo</name>
        <url>https://maven.pne.io</url>
    </repository>
</repositories>
  
<dependency>
    <groupId>com.payneteasy.http-server</groupId>
    <artifactId>http-server-impl</artifactId>
    <version>1.0-10</version>
</dependency>

Java code

IHttpRequestHandler handler = aRequest -> HttpResponseBuilder.status(HttpResponseStatusLine.OK)
        .addHeader("Server", "Test")
        .body("Hello".getBytes())
        .build();

HttpServer server = new HttpServer(
        new InetSocketAddress(8081)
        , new HttpLoggerSystemOut()
        , Executors.newCachedThreadPool()
        , handler
        , 10_000
);
Runtime.getRuntime().addShutdownHook(new Thread(server::stop));
server.acceptSocketAndWait();

Версии библиотеки

Версия
1.0-1