
Ktor: Build Asynchronous Servers and Clients in Kotlin
Ktor is built from the ground up using Kotlin and Coroutines. You get to use a concise, multiplatform language, as well as the power of asynchronous programming with an intuitive imperative flow.
Welcome | Ktor Documentation
Ktor is a framework for building asynchronous server-side and client-side applications with ease. Get started with Ktor Server Learn how to create, run and test a server application with Ktor.
Learn - Ktor Framework
If you're new to Ktor, work your way through some of the tutorials we have prepared that guide you on a step-by-step journey covering different Ktor capabilities. Creating a new Ktor Project; Creating HTTP APIs; Creating an interactive web site; Creating a Web Socket Chat Application
Create, open and run a new Ktor project | Ktor Documentation
2025年1月29日 · Get started with building your first Ktor Server application. In this tutorial you will learn how to create, open and run a new Ktor project.
Create a client application | Ktor Documentation - Ktor Help
2024年6月13日 · Ktor includes a multiplatform asynchronous HTTP client, which allows you to make requests and handle responses, extend its functionality with plugins, such as authentication, JSON serialization, and more. In this tutorial, we'll show you how to create your first Ktor client application that sends a request and prints out a response. Prerequisites
How to create RESTful APIs in Kotlin with Ktor
2024年12月10日 · Learn to build Kotlin RESTful APIs with Ktor. This tutorial covers setup, routing, and testing on a real-life example. It’s an ideal entry-level tutorial for Kotlin backend developers.
Creating and configuring a client | Ktor Documentation
2024年8月12日 · import io.ktor.client.* val client = HttpClient() In this case, the client will choose an engine automatically depending on the artifacts added in a build script . You can learn how the client chooses an engine from the Default engine documentation section.
Routing | Ktor Documentation
2025年2月6日 · Routing is the core Ktor plugin for handling incoming requests in a server application. When the client makes a request to a specific URL (for example, /hello ), the routing mechanism allows us to define how we want this request to be served.
Server plugins | Ktor Documentation
2025年2月6日 · Ktor does, however, provide a variety of plugins that ship out of the box. You can see a complete list of these in the Ktor Plugin Registry . In addition, you can also create your own custom plugins .
Making requests | Ktor Documentation
2024年4月2日 · The Ktor client provides the submitForm function for sending form parameters using both x-www-form-urlencoded and multipart/form-data types. The example below shows how to send form parameters encoded as multipart/form-data :