https://github.com/teyckmans/akka-http-quickstart-kotlin
https://developer.lightbend.com/guides/akka-http-quickstart-java/ converted to Kotlin
https://github.com/teyckmans/akka-http-quickstart-kotlin
akka-http kotlin
Last synced: 11 months ago
JSON representation
https://developer.lightbend.com/guides/akka-http-quickstart-java/ converted to Kotlin
- Host: GitHub
- URL: https://github.com/teyckmans/akka-http-quickstart-kotlin
- Owner: teyckmans
- Created: 2020-04-20T22:46:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-20T23:05:51.000Z (about 6 years ago)
- Last Synced: 2025-03-06T16:53:50.987Z (over 1 year ago)
- Topics: akka-http, kotlin
- Language: Kotlin
- Size: 59.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# akka-http-quickstart-kotlin
I have finally got around to start experimenting with Akka-http.
While doing my initial experiments I thought I try to convert the quickstart to Kotlin and see what that would look like.
This is the result. I kinda like it.
Converted the [akka-http-quickstart-http](https://developer.lightbend.com/guides/akka-http-quickstart-java/) to Kotlin.
Including the Gradle build.
## Additions
Shutdown hook for gracefully stopping the server.
Jackson object-mapper additionally configured to find and register modules.
Java 8 and Kotlin modules have been added to the dependencies.
## TODO
RejectEmptyResponse does not work properly.
Find a general way to reply with StatusCodes.NOT_FOUND in case an Optional is empty.