Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Ktt-Development/simplehttpserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleHttpServer

jitpack jitci version downloads license

Based on the java sun Http Server. Complicated features made easy.

New Http Server Methods

Temporary Contexts

Handlers that will process a single request before removing itself. Useful for single use download links or image hosting.

Context Retrieval

Get the contexts that the server has loaded (why wasn't this already a feature?).

New Exchange Methods

HTTP GET

Get requests are parsed into a hashmap.

HTTP POST

Post requests are parsed into a hashmap (multipart/form-data as well!).

Http Handlers

Redirect Handler

A simple handler to redirect links without leaving a mark in the history.

Predicate Handler

A simple handler to handle requests based on a predicate.

Root Handler

A handler to help process homepage and 404 requests.

File Handler

Host files, set their contexts, control their output, host directories and support for file walking,

New Features

Constants

Static variables for HTTP codes and methods.

Http Session

Keep track of the user across different exchanges.

Cookies

Get and set cookies.

About

SimpleHttpServer :: Simplified implementation of the sun http server :: Simplified handlers to execute complex operations

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages