|
1 | | -[](https://jitpack.io/#com.kttdevelopment/simplehttpserver) |
2 | | -[](https://jitci.com/gh/Ktt-Development/simplehttpserver) |
3 | | -[](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) |
| 1 | +# SimpleHttpServer |
| 2 | +[](https://github.com/Ktt-Development/simplehttpserver/watchers) |
| 3 | +[](https://github.com/Ktt-Development/simplehttpserver/stargazers) |
| 4 | +[](https://github.com/Ktt-Development/simplehttpserver/network/members) |
| 5 | +[](https://github.com/Ktt-Development/simplehttpserver/issues) |
| 6 | +[](https://github.com/Ktt-Development/simplehttpserver/pulls) |
| 7 | +[](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) |
4 | 8 |
|
5 | | -# ktt.lib.httpserver |
6 | | -Enhanced version of the the default Http Server |
| 9 | +[](https://jitpack.io/#com.kttdevelopment/simplehttpserver) |
| 10 | +[](https://jitci.com/gh/Ktt-Development/simplehttpserver) |
| 11 | +[](https://github.com/Ktt-Development/simplehttpserver/releases) |
| 12 | +[](https://github.com/Ktt-Development/simplehttpserver/releases) |
7 | 13 |
|
8 | | -compiled builds on site |
| 14 | +Based on the java sun Http Server. Complicated features made easy. |
| 15 | + |
| 16 | +## New Http Server Methods |
| 17 | +##### Temporary Contexts |
| 18 | +Handlers that will process a single request before removing itself. Useful for single use download links or image hosting. |
| 19 | + |
| 20 | +##### Context Retrieval |
| 21 | +Get the contexts that the server has loaded (why wasn't this already a feature?). |
| 22 | + |
| 23 | +## New Exchange Methods |
| 24 | +##### HTTP GET |
| 25 | +Get requests are parsed into a hashmap. |
| 26 | +##### HTTP POST |
| 27 | +Post requests are parsed into a hashmap (`multipart/form-data` as well!). |
| 28 | + |
| 29 | +##Http Handlers |
| 30 | +##### Redirect Handler |
| 31 | +A simple handler to redirect links without leaving a mark in the history. |
| 32 | +##### Predicate Handler |
| 33 | +A simple handler to handle requests based on a predicate. |
| 34 | +##### Root Handler |
| 35 | +A handler to help process homepage and 404 requests. |
| 36 | +##### File Handler |
| 37 | +Host files, set their contexts, control their output, host directories and support for file walking, |
| 38 | + |
| 39 | +## New Features |
| 40 | +##### Constants |
| 41 | +Static variables for HTTP codes and methods. |
| 42 | +##### Http Session |
| 43 | +Keep track of the user across different exchanges. |
| 44 | +##### Cookies |
| 45 | +Get and set cookies. |
0 commit comments