https://github.com/mplatvoet/routes
Kotlin http routing experiment
https://github.com/mplatvoet/routes
Last synced: 4 months ago
JSON representation
Kotlin http routing experiment
- Host: GitHub
- URL: https://github.com/mplatvoet/routes
- Owner: mplatvoet
- Created: 2015-09-12T12:25:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T12:50:41.000Z (almost 10 years ago)
- Last Synced: 2025-02-04T11:54:12.238Z (5 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.##