ivano
12/31/2019, 5:47 PMTony
01/01/2020, 4:39 PMmbonnin
01/02/2020, 9:49 PMLogging
(https://ktor.io/clients/http-client/features/logging.html) alongside other features that can change headers in a client, does the order matter ? Can I make sure to always get what's transmitted over the wire ?codec
01/03/2020, 1:54 AMjlleitschuh
01/03/2020, 4:13 AMSabeeh
01/03/2020, 9:00 AM1.3.0-rc2
in post call when call function call.receiveParamters()
i get this error
java.lang.NoSuchMethodError: 'java.lang.Object io.ktor.request.ApplicationReceiveFunctionsKt.receive(io.ktor.application.ApplicationCall, kotlin.reflect.KType, kotlin.coroutines.Continuation)'
Any idea how fix it?
it work fine if using ktor version 1.2.2
@hhaririThiyagu
01/03/2020, 1:02 PMcy
01/03/2020, 3:15 PMmelatonina
01/04/2020, 9:53 AMMarcin Wisniowski
01/05/2020, 12:45 AMprintln
something like "responded to /some/endpoint in 50ms" for every request. I have found I can access every request with
intercept(ApplicationCallPipeline.Monitoring){ /**/ }
but I'd like to access every response before it's sent and some information about it.bod
01/05/2020, 6:36 PMUncaught Kotlin exception: io.ktor.client.call.NoTransformationFoundException: No transformation found: class <http://io.ktor.utils.io|io.ktor.utils.io>.ByteChannelNative -> class org.jraf.klibqonto.internal.api.model.organizations.ApiOrganizationEnvelope
So I'm supposing the problem would have something to do with the Engine that's used (I use curl on MacOS). Any idea what the problem could be?Jamie Craane
01/05/2020, 8:23 PMroute {
get("sample") {
call.respondText("Hello {Name}")
}
}
And I want to use a global interceptor to replace the {Name} variable in the response with some
other value. How do I access the contents of the response in an interceptor? (I know how I can send a
custom response but not yet how I can access the original response, and modify it)nrobi
01/06/2020, 11:30 AMKtor
backend module from a KMP
project to Heroku, but I’m getting A problem occurred configuring project ':app'. > kotlin.KotlinNullPointerException (no error message)
for Task :buildSrc:build
. Anyone who had similar issues?Timur Atakishiev
01/06/2020, 4:33 PMRobert Menke
01/07/2020, 7:20 PMAlan Pierri
01/07/2020, 8:46 PMspand
01/08/2020, 9:07 AMThere is a performance penalty when using auto-reloading. So keep in mind that you should not use it in production or when doing benchmarks.
What exactly would cause a penalty here? Simply a non empty watchPaths, or watchPaths pointing to empty directories, or using reload instead of redeploy ?paulex
01/08/2020, 10:02 AMoverride fun modify(item: User): CompletionStage<User> {
return supplyAsync {
transaction {
Users.update({ Users.id eq item.id }) {
it[name] = item.name
it[gender] = item.gender
it[first_name] = item.firstName;
}
}
}.thenApply { return@thenApply item }
}
Is there a way to simplify an update transaction on object properties, i feel it is repetitive to keep on writing :
it[name] = item.name
it[gender] = item.gender
?Thiyagu
01/09/2020, 1:48 PMaws paramstore
storing the config value and resolving at runtime at the application start?spierce7
01/10/2020, 3:05 PMKris Wong
01/10/2020, 10:46 PMMrPowerGamerBR
01/12/2020, 6:33 PMthis.socketTimeout = 25_000
this.connectTimeout = 25_000
this.connectionRequestTimeout = 25_000
Kris Wong
01/13/2020, 9:23 PMMockClientEngine
request handling could be updated after the object is createdanthony castillo
01/14/2020, 12:11 AMKris Wong
01/14/2020, 9:57 PMKris Wong
01/14/2020, 11:17 PM<http://HttpClient.post|HttpClient.post>
on iOS. the method never returns. it's called from within a runBlocking
block from the main thread (from a unit test). has anyone experienced this?cy
01/15/2020, 6:40 AMHttpStatement
and deprecated potentially dangerous resource-leaking client API
• Eliminated kotlinx.io dependency
• Fixed server identity compression handling: keep original content length
• Fixed handling GET requests with body (#1302)
• Fixed curl request with empty body
• Added iOS url session configuration
• Fixed CIO engine no longer sends port in “Host” header (#1295)
• Add INTRINSIC value to TLS signature algorithms
• Introduced ability to send string in request body
• Improved client and server typeOf support with kotlinx.serialization
• Gradle 5.4.1+ with newer metadata (metadata 1.0)
• Improved exceptions handling in client and server on Android
• Added missing TLS parameters and relaxed TLS parsing to ignore unsupported features
• Improved session diagnostics (#1368)
• Fixed hookRequests
in test engine (#1300)
• Deprecate java.time related API and related cleanup (for future kotlin.time support)
• Restricted CIO HTTP headers parser
• Introduced header name and value validation
• Fixed must-revalidate on the request side in ktor client (#1406)
• Fixed OkHttp client resource cleanup on close
• Added watchos/tvos native targets
• Fixed content truncation at native and JS targets
• Fixed server’s If-Range
header parsing to avoid crash at date parsing (#1377)
• Fixed server’s conditional headers processing
• Reduced required JDK version for DefaultHeaders
server feature
• Fixed client hanging due to exception in response pipeline
• Replaced HttpClientJvmEngine to HttpClientEngineBase that is now common for all platforms (affects only custom client engines)
• Fixed hierarchy of execution and call contexts in clients that allows to properly handle request lifetime using execution context.
• Optimize JS module import time (#1464)
• Upgraded versions of Netty, Jetty and Tomcat implementations
• Added Pebble template engine (#1374)
• Introduced localPort route that is always tied to actual socket port (#1392)
• Fixed cookie expiration date parsing (#1390)
• Server authentication feature’s phases are now public (#1160)
• Fixed auth header resending after redirect (#1467)
• TCP half-close made optional for CIO client engine and disabled by default.
• Apache client random timeouts fixed
• Fixed locale-dependant code (#1491)
• Fixed unclosed websocket channels if cancelled too early
• TCP half-close made optional for CIO client engine and disabled by default. (#1456)
• Improved ktor-client-mock engine to be thread safe (#1505)
• Fixed client cookies logging (#1506)
• Fixed multiple application stop events in test engine (#1498)
• Fixed CIO ActorSelectorManager to not spin due to cancelled keys (affects both CIO client and server)
• Made default auth validate functions fail to force users to implement them
• Introduced test client instance in the test server
• Fixed various server and client engines to return null
for missing headers rather than empty list
• Introduced support for json structures in client and server (#1519)
• Introduced ktor-server-core binary compatibility tracking
• kotlinx.coroutines 1.3.3
See migration guide: https://ktor.io/quickstart/migration/1.3.0.html
Known issues:
• Netty HTTP/2 push sometimes get broken
• Running ios and native client engine on non-main worker is still not supported (there are only few working scenarios so not guaranteed to work)hooliooo
01/15/2020, 12:35 PMreadRemaining()
did not need arguments, now it needs a limit and headerSizeHint. What would be appropriate values here?Slackbot
01/16/2020, 9:04 AMKris Wong
01/16/2020, 4:18 PMKris Wong
01/16/2020, 4:18 PMcy
01/16/2020, 4:27 PMKris Wong
01/16/2020, 4:29 PM