python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
What is the difference between static files and embedded application resources in Ktor?
I'm reading the ktor documentation on serving static content and it's not clear to me what the difference between files("css") and resources("css") is.

Alexander Suraphel
Votes: 0
Answers: 1
How to observe Ktor download progress by a Flow
I want to observe the download progress by a Flow,
so I wrote a function like this:
suspend fun downloadFile(file: File, url: String): Flow<Int>{
val client = HttpClient(Android)
...
TangSir
Votes: 0
Answers: 1
Kotlin Exception when mocking suspend function java.io.EOFException: Premature end of stream: expected 1 bytes
I use KTor and Kotlin Serialization library in my android project, along with mockk and junit.jupiter for unit testing. I've encountered a problem when mocking ktor's suspend function readText(). The ...

Sergio
Votes: 0
Answers: 2
How to solve the duplicate subscription (Subscribe.OnSubscribe()) error in listener code in azure eventhubs with Ktor (Kotlin server)?
The error is:
Duplicate Subscription has been detected.
java.lang.IllegalStateException: Spec. Rule 2.12 - Subscriber.onSubscribe MUST NOT be called more than once (based on object equality)
This is t...

Aakanksha D
Votes: 0
Answers: 0