No description
Find a file
2023-11-21 11:40:38 +01:00
gradle improve logging of requests that can not be resolved 2023-11-21 11:40:38 +01:00
net-http rename attributes() to getAttributes() 2023-03-26 22:23:46 +02:00
net-http-client implement file uploading, release resource in channel close handler, clean up request/response API 2023-04-09 23:01:08 +02:00
net-http-client-netty add content method with bytes for netty client 2023-10-01 10:11:02 +02:00
net-http-client-netty-secure add persist session handler, remove hebis test code 2023-06-09 11:59:47 +02:00
net-http-client-simple initial commit 2022-10-20 10:19:32 +02:00
net-http-htmlflow add htmlflow, add utility methods to HtmlTemplateResource 2023-07-14 14:54:50 +02:00
net-http-j2html add htmlflow, add utility methods to HtmlTemplateResource 2023-07-14 14:54:50 +02:00
net-http-netty-boringssl fix module descriptor for conscrypt 2022-11-07 18:55:29 +01:00
net-http-netty-conscrypt fix module descriptor for conscrypt 2022-11-07 18:55:29 +01:00
net-http-netty-epoll initial commit 2022-10-20 10:19:32 +02:00
net-http-netty-kqueue initial commit 2022-10-20 10:19:32 +02:00
net-http-server improve logging of requests that can not be resolved 2023-11-21 11:40:38 +01:00
net-http-server-application-config refactoring HttpServerContext into HttpRouterContext 2023-04-29 22:02:01 +02:00
net-http-server-application-database refactoring HttpServerContext into HttpRouterContext 2023-04-29 22:02:01 +02:00
net-http-server-application-journal fix journal purging 2023-10-06 16:24:51 +02:00
net-http-server-application-web update to netty 4.1.98 2023-09-27 15:13:49 +02:00
net-http-server-netty make server HTTP request serializable in json 2023-08-21 17:18:11 +02:00
net-http-server-netty-secure update to safer parameter handling 2023-08-01 10:06:09 +02:00
net-http-server-nio improve logging of requests that can not be resolved 2023-11-21 11:40:38 +01:00
net-http-server-simple remove write(String) from HttpResponseBuilder, we don't like sloppyness, try enforcing charset use 2023-08-07 18:08:25 +02:00
net-http-server-simple-secure refactoring HttpServerContext into HttpRouterContext 2023-04-29 22:02:01 +02:00
net-http-template-groovy add journal application module 2023-08-29 13:38:59 +02:00
.gitignore initial commit 2022-10-20 10:19:32 +02:00
build.gradle update to OpenJDK 21, Gradle 8.4-rc-1 2023-10-01 08:51:00 +02:00
gradle.properties improve logging of requests that can not be resolved 2023-11-21 11:40:38 +01:00
gradlew update to OpenJDK 21, Gradle 8.4-rc-1 2023-10-01 08:51:00 +02:00
gradlew.bat upgrade to Gradle 8.0.2, simplify module methods, simplify thread pool, cleanup router 2023-04-05 21:55:24 +02:00
LICENSE.txt initial commit 2022-10-20 10:19:32 +02:00
README.md initial commit 2022-10-20 10:19:32 +02:00
settings.gradle improve logging of requests that can not be resolved 2023-11-21 11:40:38 +01:00

Java Net API for servers and clients

A consolidated Uniform Resource Locator implementation for Java

A Uniform Resource Locator (URL) is a compact representation of the location and access method for a resource available via the Internet.

Historically, there are many different forms of internet resource representations, for example, the URL (RFC 1738 as of 1994), the URI (RFC 2396 as of 1998), and IRI (RFC 3987 as of 2005), and most of them have updated specifications.

This Java implementation serves as a universal point of handling all different forms. It follows the syntax of the Uniform Resource Identifier (RFC 3986) in accordance with the https://url.spec.whatwg.org/[WHATWG URL standard].

This alternative implementation of Uniform Resource Locator combines the features of the vanilla URI/URL Java SDK implementations but removes it peculiarities and deficiencies, such as java.lang.IllegalArgumentException: Illegal character in path at ... at java.net.URI.create()

Normalization, NIO charset encoding/decoding, IPv6, an extensive set of schemes, and path matching have been added.

Fast building and parsing URLs, improved percent decoding/encoding, and URI templating features are included, to make this library also useful in URI and IRI contexts.

While parsing and building, you have better control about address resolving. Only explicit resolveFromhost methods will execute host lookup queries against DNS resolvers, otherwise, no resolving will occur under the hood.

You can build URLs with a fluent API, for example

URL.http().host("foo.com").toUrlString()

And you can parse URLs with a fluent API, for exmaple

URL url = URL.parser().parse("file:///foo/bar?foo=bar#fragment");

There is no external dependency. The size of the jar library is ~118k. The only dependency on java.net are the classes

java.net.IDN
java.net.Inet4Address
java.net.Inet6Address
java.net.InetAddress

which might get re-implemented in another library at a later time, in a project like Netty DNS resolver.

A simple HTTP server

A netty-based HTTP server

License

Copyright (C) 2018 Jörg Prante

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. you may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.