No description
Find a file
Kevin Dean 03b9c54925
Merge pull request #18 from Tormund/iobFix
fix index out of bounds with new nim
2018-07-31 22:18:22 -05:00
docs tweaking license/docs/nimble config 2016-02-14 20:27:19 -06:00
examples Fixing example code 2017-09-26 16:50:59 -05:00
src fix 2018-05-02 14:27:25 +03:00
tests Fixes #16 2017-09-26 16:50:59 -05:00
.gitignore organization everything nicely 2016-02-08 21:44:59 -06:00
.travis.yml updating notifications in travis 2016-02-14 19:11:28 -06:00
LICENSE tweaking license/docs/nimble config 2016-02-14 20:27:19 -06:00
nest.nimble tweaking license/docs/nimble config 2016-02-14 20:27:19 -06:00
README.md Update README.md 2016-02-14 20:15:56 -06:00

Build Status

Nest

RESTful routing with Nim!

Intro

Nest is a high performance URL mapper/router built in Nim.

At the moment, Nest needs a work and is not ready for production. Feedback is appreciated moving forward!

Nest is not a web application framework, only a router. Everything besides routing must be implemented by some other code.

Usage

See examples/ for example usage. Note that using this against Nim's built in asynchttpserver is not required, and it is just used for the examples.

Compilation

To run the example code, use the following invocation:

nim c -r examples/basic.nim

Threads are not required for nest to run, but the examples use threads (in nim.cfg) to prove that they can be used.

Features

  • Map against any HTTP method and path
  • Server-agnostic
  • URL parameter capture
  • Query string parameter capture
  • Plays nice with various logging systems
  • Does not impose restrictions on your handler methods
  • Fully unit tested

Future Features

  • Benchmarking
  • Adding consumes/produces constraints
  • Removing dependency on HTTP, allow routing on other transport protocols
  • Guarantee thread safety