Popularity
4.5
Declining
Activity
6.2
Declining
69
4
14
Programming language: Kotlin
License: MIT License
Tags:
Web
Latest version: v1.1.12
kottpd alternatives and similar libraries
Based on the "Web" category.
Alternatively, view kottpd alternatives based on common mentions on social networks and blogs.
-
vertx-lang-kotlin
This module provides Kotlin language bindings including DSL and extension functions for vert.x 3 -
skrape.it
HTML testing and web scraping library providing an intuitive DSL to receive and either extract or check markup (a jSoup wrapper DSL with extra functionality) ๐ -
lambda-kotlin-request-router
A REST request routing layer for AWS lambda handlers written in Kotlin -
bootique-kotlin
Provides extension function and features for smooth development with Bootique and Kotlin. -
Zeko-RestApi
Fun, simple & lightweight async RESTful API framework on top of Vert.x. Automatic Swagger doc & code generation via Kotlin kapt -
graphql-kotlin-toolkit
GraphQL toolkit for Kotlin (includes code generator and spring boot integration)
Get performance insights in less than 4 minutes
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of kottpd or a related project?
Popular Comparisons
README
kottpd
Kottpd - REST framework written in pure Kotlin. It is available from maven central repository. It supports plain HTTP and secured HTTPs.
<dependency>
<groupId>com.github.gimlet2</groupId>
<artifactId>kottpd</artifactId>
<version>0.2.0</version>
</dependency>
val server = Server() // default port is 9000
server.staticFiles("/public") // specify path to static content folder
server.get("/hello", { req, res -> res.send("Hello") }) // use res.send to send data to response explicitly
server.get("/hello_simple", { req, res -> "Hello" }) // or just return some value and that will be sent to response automatically
server.get("/do/.*/smth", { req, res -> res.send("Hello world") }) // also you could bind handlers by regular expressions
server.post("/data", { req, res -> res.send(req.content, Status.Created) }) // send method accepts status
// Filters
server.before("/hello", { req, res -> res.send("before\n") })
server.before({ req, res -> res.send("ALL before\n") })
server.after("/hello", { req, res -> res.send("\nafter\n") })
server.after({ req, res -> res.send("ALL after\n") })
// exceptions handler
server.exception(IllegalStateException::class, { req, res -> "Illegal State" })
server.start(9443, true, "./keystore.jks", "password") // for secured conection
server.start()