Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
/nestPublic archive

RESTful routing with Nim

License

NotificationsYou must be signed in to change notification settings

kedean/nest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 isnot 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:

nimc-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

About

RESTful routing with Nim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp