nitcorn
The nitcorn Web server framework creates server-side Web apps in Nit
Examples
Want to see nitcorn
in action? Examples are available at ../../examples/nitcorn/src/.
Features and TODO list
- [x] Virtual hosts and routes
- [x] Configuration change on the fly
- [x] Sessions
- [x] Reading cookies
- [x] Parameterized routes
- [ ] Full cookie support
- [ ] Close interfaces on the fly
- [ ] Better logging
- [ ] Info/status page
- [ ]
ProxyAction
to redirect a request to an external server - [ ]
ModuleAction
which forwards the request to an independant Nit program
Bugs / Limitations
- The size of requests is limited, so no big uploads
Credits
This nitcorn library is a fork from an independant project originally created in 2013 by Jean-Philippe Caissy, Guillaume Auger, Frederic Sevillano, Justin Michaud-Ouellette, Stephan Michaud and Maxime Bélanger.
It has been adapted to a library, and is currently maintained, by Alexis Laferrière.
Other contributors:
- Alexandre Terrasa
Content
- nitcorn: The nitcorn Web server framework creates server-side Web apps in Nit (lib/nitcorn)
- examples (lib/nitcorn/examples)
- src (lib/nitcorn/examples/src)
- file_server_on_port_80: Basic file server on port 80, usually requires
root
to execute (lib/nitcorn/examples/src/file_server_on_port_80.nit) - nitcorn_hello_world: Hello World Web server example (lib/nitcorn/examples/src/nitcorn_hello_world.nit)
- xymus_net: Configuration of the Web server of xymus.net (lib/nitcorn/examples/src/xymus_net.nit)
- file_server_on_port_80: Basic file server on port 80, usually requires
- www (lib/nitcorn/examples/www)
- hello_world (lib/nitcorn/examples/www/hello_world)
- src (lib/nitcorn/examples/src)
- file_server: Provides the
FileServer
action, which is a standard and minimal file server (lib/nitcorn/file_server.nit) - http_errors: Offers
ErrorTemplate
to display error pages (lib/nitcorn/http_errors.nit) - http_request: Provides the
HttpRequest
class and services to create it (lib/nitcorn/http_request.nit) - http_request_parser: Http request parsing for bufferized inputs. (lib/nitcorn/http_request_parser.nit)
- http_response: Provides the
HttpResponse
class andhttp_status_codes
(lib/nitcorn/http_response.nit) - media_types: Services to identify Internet media types (or MIME types, Content-types) (lib/nitcorn/media_types.nit)
- nitcorn: The nitcorn Web server framework creates server-side Web apps in Nit (lib/nitcorn/nitcorn.nit)
- reactor: Core of the
nitcorn
project, providesHttpFactory
andAction
(lib/nitcorn/reactor.nit) - server_config: Classes and services to configure the server (lib/nitcorn/server_config.nit)
- sessions: Automated session management (lib/nitcorn/sessions.nit)
- vararg_routes: Routes with uri parameters. (lib/nitcorn/vararg_routes.nit)
- examples (lib/nitcorn/examples)