The Wayback Machine - https://web.archive.org/web/20200702144913/https://github.com/topics/ktor
Skip to content
#

ktor

Here are 346 public repositories matching this topic...

IRus
IRus commented Dec 6, 2019

Use case:

class MetricsServiceProvider(
    private val configuration: Configuration,
    private val shutdownManager: ShutdownManager
) : Provider<MetricsService> {
    ovveride fun get(): MetricsService {
        //.. code that initializes and setups MetricsService
    }
}

I moved service initialization in class with dependencies, I'd like to do something like this:

DestBro
DestBro commented Apr 16, 2019

I want to write feedback as a user who used the framework, maybe you need it.
It is a framework that can have great skills in the future as I think, perhaps will compete with Vaadin. It's a good thing you support him. It would be very good to have documentation with live examples (no only code), such as within the yested framework (see here) which is

zilluss
zilluss commented Apr 29, 2020

I tried the kotlinx serialization example from the docs: https://ktor.io/servers/features/content-negotiation/serialization-converter.html

Upon using the example I get a deprecation warning for the „serialization(...“ Block because it has been replaced by json.
Second the example does not work. In contrast, the gson example works perfectly fine.
Either fix or remove the section, so other peo

uuf6429
uuf6429 commented Apr 19, 2020

I really like this project, however, not only is documentation lacking, but the examples seem broken/half-baked (eg TestServer.kt's APIPrincipal) and some usages are far from understandable.

For example, I just (literally) got a headache trying to understand how the StatusPages syntax works.

Let's give the original usage a look:

exception<Throwable> { cause ->      // easy,

Improve this page

Add a description, image, and links to the ktor topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ktor topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.