Trey
04/27/2022, 1:49 PMMJegorovas
04/27/2022, 2:15 PMPeter
04/27/2022, 5:27 PMAuthentication.ChallengePhase
?Slackbot
04/27/2022, 6:55 PMMJegorovas
04/28/2022, 11:01 AMheaders.append
have a method with HeaderValueWithParameters
as second parameter and other append*
don't? If only append
should have this, then this doc needs to be fixed: https://api.ktor.io/ktor-client/ktor-client-core/io.ktor.client.plugins/-default-request/index.html (see "usage" box).Paul SOUTEYRAT
04/28/2022, 4:13 PMMiquel Àngel Román
04/28/2022, 8:58 PMhhariri
MJegorovas
04/29/2022, 11:36 AMResource
are serialized? Now i get <http://example.com?ids=1&ids=2|example.com?ids=1&ids=2>
, but I would want <http://example.com?ids=[1|example.com?ids=[1>, 2]
David Stibbe
04/29/2022, 1:21 PMVivek Modi
04/29/2022, 1:46 PMbbaldino
04/29/2022, 4:59 PMApplication.configureRoutes()
-type method within a class to be able to add additional context? For example, I want to be able to fire events when a new websocket is established, so want a way to store a sort of ‘event emitter’, and therefore allow external entities to be able to subscribe to those events. I think maybe the new Context Receivers
would handle this? But looking for another way since those are still experimental.Muhammad Talha
04/30/2022, 5:51 AMDragos Rachieru
05/02/2022, 9:13 AMktor
for remote loading and okio
for local loading(files).
I want to have an interface for fetcher that returns a flow of Loading(progress)
, Success(something)
, Error(throwable)
I am not sure what something
should be to support both fetchers.Andreas Scheja
05/02/2022, 11:45 AMfinish()
a call from inside a onCall
handler. Is that intended?Peter
05/02/2022, 6:01 PMbbaldino
05/02/2022, 9:56 PMIn this sample, the infinite loop is only exited with an exception is risen: either a ClosedReceiveChannelException or another exception.but when I do a test with postman and hit “disconnect” on the postman side, no exception is thrown in ktor: instead the
for (frame in incoming)
loop just exits. Is this also a possible “close” behavior?Garry Heaton
05/03/2022, 12:44 AMDragos Rachieru
05/03/2022, 7:42 AMktor-client-curl
but it fails with error:
lld: error: unable to find library -lcurl
I am using ArchLinux
and I have curl
installed using pacman -S curl
Running curl
from terminal works.bbaldino
05/03/2022, 10:44 PMwebSocket
block? I’m trying to do something like:
webSocket("/ws") {
val webSocketTransport = WebSocketTransport(this)
eventHandler.newWebSocketConnected(webSocketTransport)
}
where the WebSocketTransport
launches a coroutine to read the incoming messages:
scope.launch {
for (msg in webSocketSession.incoming) {
...
}
}
but when I try this, the websocket disconnects immediately, because it looks like it’s implemented in a way to close as soon as the passed handler
returns. Is there any good pattern move that logic out? I did it one way where I added another channel, and the webSocket handler read messages and wrote them to that channel, and WebSocketTransport read from that channel, but was hoping to avoid having to create the intermediary.hruan
05/04/2022, 9:53 AM415
when 201
is expected. Running the app and calling the same endpoint via curl works as expected, leading me to believe that I’ve done something wrong with the test client setup. Any pointers would be appreciated. Details in thread.ribesg
05/04/2022, 10:03 AMheader(…)
and not contentType(…)
?
https://ktor.io/docs/testing.html#form-dataKamilH
05/04/2022, 10:09 AMwithTestApplication
where I call Application.module
function with some arguments like that:
withTestApplication({
module(appModule = appModule)
}) { ... }
now we are suppose to use testApplication
function that seemingly calls Application.module
function automatically, so passing custom arguments seems not possible anymore and it makes testing much more difficult. Is there any way to call Application.module
manually? Is there any workaround?Alejandro Moya
05/04/2022, 3:46 PMTrey
05/04/2022, 8:31 PMJan Groen
05/05/2022, 3:35 PMC:\Users\<username>\.gradle\caches\modules-2\files-2.1\io.ktor\ktor-server-netty-jvm\2.0.1\6210e26a36285251b7822bddc484c8a4fd71569c\ktor-server-netty-jvm-2.0.1.jar
and C:\Users\<username>\.gradle\caches\modules-2\files-2.1\io.ktor\ktor-server-auth-jvm\2.0.0\ab5f2ce194ed07ca79bf5a7c298a757b000f37b9\ktor-server-auth-jvm-2.0.0.jar
System reboots/updates seem to not solve the problem. Gradle reimports/version changes don't seem to do the trick either. Does anyone know of similar issues?Brent Beardsley
05/05/2022, 8:44 PMapplication.pluginOrNull(ContentNegotation)
and I can see that it's installed I just can't get to it's config and registrations without reflection that I can see.thana
05/06/2022, 6:59 AMreceiveDeserialized
on the DefaultClientWebSocketSession
but sooner or later this will inevitably result in an exception: as soon a Ping or a Close frame arrives this fails.
Wouldn;t you actually need something like frame.readDeserialiing()
or similar, so you could write something like
for(frame in incoming){
when(frame.frameType) {
FrameType.TEXT -> frame.readDeserialzied()
FrameType.CLOSE -> return;
}
}
?Vivek Modi
05/06/2022, 8:54 AMResponseException
have second paramter cachedResponseText
. Do you guys know what is cachedResponseText
?
ResponseException(response, cachedResponseText)
Ryan Brink
05/07/2022, 2:31 AM