Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mplatvoet/routes

Kotlin http routing experiment
https://github.com/mplatvoet/routes

Last synced: 16 days ago
JSON representation

Kotlin http routing experiment

Awesome Lists containing this project

README

        

#Routes
An experiment in Kotlin for registering and mapping http routes.
>This is by no means production ready
I have the follwing goals:

##Simple API
adding routes like:
```kt
routes.add {
get("/a/b/**") {
foo()
}
post("/a/d/b/") {
foo()
}
}
```
##Threadsafe
Adding routes should be threadsafe. So multiple threads should be able to add routes even while already using.

##Fast
Should be as fast as possible, so performance over code beauty (hopefully both)

##Memory efficient
Searching and finding routes should produce as little garbage as possible.

##