Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mplatvoet/routes
- Owner: mplatvoet
- Created: 2015-09-12T12:25:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T12:50:41.000Z (over 9 years ago)
- Last Synced: 2024-04-16T07:26:09.733Z (8 months ago)
- Language: Kotlin
- Size: 176 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.##