Giter Site home page Giter Site logo

nest's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.