Eduard Boloș
08/11/2018, 12:51 PMtryGetString
with path ktor.deployment.port
for value ${?PORT}
(that is coming from the included file) is not resolved for some reason. I will probably stop debugging now and I will open an issue on GH a bit later. thanks for you reply, Ilya!Eduard Boloș
08/12/2018, 9:47 PMcom.typesafe.config.Config
object, am I missing something?Tim Castelijns
08/14/2018, 7:36 AMinstall(HttpCookies)
on apache client and make a call I get issue DateTimeParseException: Text 'Mon, 13-Aug-2018 07:33:04 GMT' could not be parsed at index 7
I suppose I have to specify a datetime format somewhere but I haven’t been able to find how to do thisTim Castelijns
08/14/2018, 10:25 AMvincent.brule
08/14/2018, 12:50 PMuhe
08/14/2018, 1:09 PMktor-server-core
artifact..
[14:55:31][Gradle failure report] > Could not download ktor-server-core.jar (io.ktor:ktor-server-core:0.9.3)
[14:55:31][Gradle failure report] > Could not get resource 'http://dl.bintray.com/kotlin/ktor/io/ktor/ktor-server-core/0.9.3/ktor-server-core-0.9.3.jar'.
[14:55:31][Gradle failure report] > Connection reset
rocketraman
08/14/2018, 10:45 PMcopyToSuspend
@ https://ktor.io/servers/uploads.html ? I suspect that should just be copyTo
right?zpearce
08/14/2018, 10:45 PMRoute
from the ApplicationCall
?orangy
08/15/2018, 8:04 PMalex009
08/16/2018, 12:13 AMvincent.brule
08/16/2018, 7:07 AMdave08
08/16/2018, 10:36 AMAndrey Kormak [IceRock]
08/19/2018, 1:53 PMvincent.brule
08/20/2018, 7:44 AMalex009
08/20/2018, 8:27 AMaeruhxi
08/20/2018, 9:14 AMDefaultWebSocketServerSession
?vincent.brule
08/20/2018, 1:32 PMMohit Gurumukhani
08/20/2018, 8:28 PMval response = client.get<MyClass>(“<https://en.wikipedia.org/wiki/Main_Page”>)
This will return convert the returned Json to MyClass. However, this won’t allow us to get additional info such as return status code etc. Is there a way to get around this?gildor
08/21/2018, 9:48 AMclient.get<Response<MyClass>>(…) or client.getResponse<MyClass>(...)
Mohit Gurumukhani
08/21/2018, 6:47 PMbffcorreia
08/22/2018, 2:00 PMSemigradsky
08/22/2018, 2:34 PM0.9.4
version?nekoinemo
08/22/2018, 3:04 PMHamza
08/22/2018, 3:27 PMapplication.conf
file. just curious, how does that work?enleur
08/24/2018, 11:08 AMVinicius Carvalho
08/24/2018, 12:00 PMvincent.brule
08/24/2018, 12:27 PMorangy
08/26/2018, 12:11 PMvarargs
may be to avoid listOf
on a call siteorangy
08/26/2018, 1:17 PMenleur
08/27/2018, 11:27 AMenleur
08/27/2018, 11:27 AMDeactivated User
08/27/2018, 11:32 AMval MyAttributeKey = AttributeKey<Int>("MyAttributeKey")
call.attributes.put(MyAttributeKey, 10)
call.attributes.get(MyAttributeKey)
ApplicationCall
contains a attributes
property that acts as a small typed dependency injector/instance container bounded to the call (so its lifespan is between the request until the response is completed).
You can put any attribute you want in an interceptor that executes before, and then receive it later in another interceptorenleur
08/27/2018, 12:08 PMHttpClientCall
used for ktor client?HttpRequestBuilder.setAttributes
, but not sure if it works at allinstall("MyFeature") {
sendPipeline.intercept(HttpSendPipeline.Before) {
this.context.setAttributes {
put(key, 1)
}
}
}
Deactivated User
08/27/2018, 12:13 PMattributes
property, but let me checkHttpRequest
interface also has an attributescall.request.attributes
?enleur
08/27/2018, 12:34 PMsendPipeline
or requestPipeline
Deactivated User
08/27/2018, 12:34 PMenleur
08/27/2018, 12:37 PMPipelineContext<Any, RequestBuilder>
is used inside interceptors
so i can use HttpRequestBuilder
but don’t see any way to get to the HttpRequest
receivePipeline
thoDeactivated User
08/27/2018, 12:38 PMenleur
08/27/2018, 12:41 PMprocess()
with before/after timestamps. And in the end log all this data with extra info, passed in the beginning and total timee5l
08/27/2018, 12:42 PMHttpRequestBuilder.setAttribute
to mark the request? You could get request from the response using call
field.enleur
08/27/2018, 12:49 PMsetAttribute
but it was never called
how can i get call
field inside requestPipeline
?receivePipeline.intercept(HttpReceivePipeline.Before) {
println(context.request.attributes.takeOrNull(key))
}
I also tried this, but it’s still empty and setAttribute
was not callede5l
08/27/2018, 12:51 PMenleur
08/27/2018, 12:55 PM