ktor-client-tests-dispatcher

Ktor is a framework for quickly creating web applications in Kotlin with minimal effort.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

io.ktor
ArtifactId

ArtifactId

ktor-client-tests-dispatcher-iosx64
Last Version

Last Version

1.2.6
Release Date

Release Date

Type

Type

pom
Description

Description

ktor-client-tests-dispatcher
Ktor is a framework for quickly creating web applications in Kotlin with minimal effort.
Project URL

Project URL

https://github.com/ktorio/ktor
Source Code Management

Source Code Management

https://github.com/ktorio/ktor.git

Download ktor-client-tests-dispatcher-iosx64

How to add to project

<!-- https://jarcasting.com/artifacts/io.ktor/ktor-client-tests-dispatcher-iosx64/ -->
<dependency>
    <groupId>io.ktor</groupId>
    <artifactId>ktor-client-tests-dispatcher-iosx64</artifactId>
    <version>1.2.6</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.ktor/ktor-client-tests-dispatcher-iosx64/
implementation 'io.ktor:ktor-client-tests-dispatcher-iosx64:1.2.6'
// https://jarcasting.com/artifacts/io.ktor/ktor-client-tests-dispatcher-iosx64/
implementation ("io.ktor:ktor-client-tests-dispatcher-iosx64:1.2.6")
'io.ktor:ktor-client-tests-dispatcher-iosx64:pom:1.2.6'
<dependency org="io.ktor" name="ktor-client-tests-dispatcher-iosx64" rev="1.2.6">
  <artifact name="ktor-client-tests-dispatcher-iosx64" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.ktor', module='ktor-client-tests-dispatcher-iosx64', version='1.2.6')
)
libraryDependencies += "io.ktor" % "ktor-client-tests-dispatcher-iosx64" % "1.2.6"
[io.ktor/ktor-client-tests-dispatcher-iosx64 "1.2.6"]

Dependencies

compile (9)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.3.60
org.jetbrains.kotlinx : kotlinx-coroutines-core-common jar 1.3.2-1.3.60
org.jetbrains.kotlinx : kotlinx-io jar 0.1.16
org.jetbrains.kotlinx : atomicfu jar 0.14.1
org.jetbrains.kotlinx : kotlinx-coroutines-io jar 0.1.16
org.jetbrains.kotlinx : atomicfu-iosx64 jar 0.14.1
org.jetbrains.kotlinx : kotlinx-coroutines-core-iosx64 jar 1.3.2-1.3.60
org.jetbrains.kotlinx : kotlinx-io-iosx64 jar 0.1.16
org.jetbrains.kotlinx : kotlinx-coroutines-io-iosx64 jar 0.1.16

Project Modules

There are no modules declared in this project.

Ktor

Official JetBrains project Download Kotlin Slack channel GitHub License

Ktor is a framework for quickly creating web applications in Kotlin with minimal effort.

import io.ktor.server.netty.*
import io.ktor.routing.*
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.server.engine.*

fun main(args: Array<String>) {
    embeddedServer(Netty, 8080) {
        routing {
            get("/") {
                call.respondText("Hello, world!", ContentType.Text.Html)
            }
        }
    }.start(wait = true)
}
  • Runs embedded web server on localhost:8080
  • Installs routing and responds with Hello, world! when receiving a GET http request for the root path

Principles

Unopinionated

Ktor Framework doesn't impose a lot of constraints on what technology a project is going to use – logging, templating, messaging, persistent, serializing, dependency injection, etc. Sometimes it may be required to implement a simple interface, but usually it is a matter of writing a transforming or intercepting function. Features are installed into the application using a unified interception mechanism which allows building arbitrary pipelines.

Ktor Applications can be hosted in any servlet container with Servlet 3.0+ API support such as Tomcat, or standalone using Netty or Jetty. Support for other hosts can be added through the unified hosting API.

Ktor APIs are mostly functions calls with lambdas. Thanks to Kotlin DSL capabilities, the code looks declarative. Application composition is entirely up to the developer's choice – with functions or classes, using dependency injection framework or doing it all manually in the main function.

Asynchronous

The Ktor pipeline machinery and API are utilising Kotlin coroutines to provide easy-to-use asynchronous programming model without making it too cumbersome. All host implementations are using asynchronous I/O facilities to avoid thread blocking.

Testable

Ktor applications can be hosted in a special test environment, which emulates a web server to some extent without actually doing any networking. It provides easy way to test an application without mocking too much stuff, and still achieve good performance while validating application calls. Running integration tests with a real embedded web server are of course possible, too.

Documentation

Please visit ktor.io for Quick Start and detailed explanations of features, usage and machinery.

  • Getting started with Gradle
  • Getting started with Maven
  • Getting started with IDEA

Reporting Issues / Support

Please use our issue tracker for filing feature requests and bugs. If you'd like to ask a question, we recommmend StackOverflow where members of the team monitor frequently.

There is also community support on the Kotlin Slack Ktor channel

Reporting Security Vulnerabilities

If you find a security vulnerability in Ktor, we kindly request that you reach out to the JetBrains security team via our responsible disclosure process.

Inspirations

Kotlin web frameworks such as Wasabi and Kara, which are currently deprecated.

Contributing

Please see the contribution guide and the Code of conduct before contributing.

io.ktor

ktor.io

Ktor is an application framework for building microservices, web applications, and more. Brought to you by JetBrains

Versions

Version
1.2.6
1.2.5
1.2.4
1.2.3
1.2.3-rc
1.2.2
1.2.1
1.2.0
1.2.0-rc2
1.2.0-rc