1
1
# sun-http-server [ ![ maven-central] ( https://img.shields.io/maven-central/v/io.github.amayaframework/http-server?color=blue )] ( https://repo1.maven.org/maven2/io/github/amayaframework/http-server/ )
2
2
3
- A repackaged and refactored sun http server, created in the original form by Oracle and formerly embedded in the jdk.
3
+ A repackaged and refactored sun http server, created in the original form by Oracle and formerly embedded in the jdk.
4
4
Distributed under the GNU v2 license.
5
5
6
- This server, built on non-blocking sockets, is a really good lightweight solution that has everything you need
7
- for full use in various projects. Up to this point, it was ignored by most of the community due to its location
6
+ This server, built on non-blocking sockets, is a really good lightweight solution that has everything you need
7
+ for full use in various projects. Up to this point, it was ignored by most of the community due to its location
8
8
in sun packages. Now this restriction has been removed.
9
9
10
10
## Getting Started
11
11
12
12
To install it, you will need:
13
- * any build of the JDK no older than version 8
14
- * some implementation of slf4j
13
+
14
+ * Java 8+
15
+ * SLF4J implementation (optional)
15
16
* Maven/Gradle
16
17
17
18
## Installing
@@ -25,6 +26,7 @@ dependencies {
25
26
```
26
27
27
28
### Maven dependency
29
+
28
30
```
29
31
<dependency>
30
32
<groupId>io.github.amayaframework</groupId>
@@ -36,7 +38,7 @@ dependencies {
36
38
## Usage example
37
39
38
40
The code below will start the server associated with the address localhost:8000.
39
- There will be one handler on the server responding to a route starting with /hello.
41
+ There will be one handler on the server responding to a route starting with /hello.
40
42
The response will contain code 200 and an empty body.
41
43
He will respond to all other requests with the code 404.
42
44
@@ -59,16 +61,18 @@ public class Server {
59
61
* [ slf4j] ( https://www.slf4j.org ) - Logging facade
60
62
61
63
## Authors
62
- * ** Oracle Corporation** - * Main work* - [ Oracle] ( https://www.oracle.com )
63
- * ** RomanQed** - * Repackaging and refactoring* - [ RomanQed] ( https://github.com/RomanQed )
64
64
65
- See also the list of [ contributors] ( https://github.com/AmayaFramework/sun-http-server/contributors ) who participated in this project.
65
+ * [ Oracle Corporation] ( https://www.oracle.com ) - * Main work*
66
+ * [ RomanQed] ( https://github.com/RomanQed ) - * Repackaging and refactoring*
67
+
68
+ See also the list of [ contributors] ( https://github.com/AmayaFramework/sun-http-server/contributors ) who participated in
69
+ this project.
66
70
67
71
## License
68
72
69
73
This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 2 - see the [ LICENSE] ( LICENSE ) file for details
70
74
71
- Also, according to the requirements, the original inserts of Oracle
75
+ Also, according to the requirements, the original inserts of Oracle
72
76
license headers are preserved in the original source files.
73
77
74
78
## Acknowledgments
0 commit comments