Torbilicious
11/26/2018, 1:23 PMJohn Hageman
11/28/2018, 2:58 PMtw
11/28/2018, 8:49 PMAdam Hurwitz
12/01/2018, 10:02 PMdroidrcc
12/03/2018, 4:07 PMJoar Leth
12/07/2018, 10:52 AMHexa
12/08/2018, 10:05 PMhandleRequest
function into a try catch
block in here? https://gist.github.com/rinnegan/3f65805a2f510519e738c4365b6fe97c#file-do-i-need-to-wrap-logic-in-try-catch-block-L20 I am confused because processor.process(input, output)
will throw a checked exception in Java but Kotlin as no checked exceptions so I'm not sure what to doAlexandre
12/10/2018, 1:04 PMzucen.co
12/12/2018, 2:22 PMSlackbot
12/16/2018, 8:25 PMkenkyee
12/19/2018, 12:45 AMXyu
12/20/2018, 11:09 PMsavrov
12/23/2018, 9:30 PMvnsgbt
12/24/2018, 4:07 PMkenkyee
12/28/2018, 12:43 PMkenkyee
12/28/2018, 5:05 PMSlackbot
12/28/2018, 5:38 PMJeff Gulbronson
12/31/2018, 4:11 AMsavrov
01/04/2019, 5:35 PMcheck
method from A server. Is it correct?hyukchan
01/05/2019, 5:45 PMhyukchan
01/21/2019, 12:45 PMakhu
01/21/2019, 6:26 PMgpeal
01/22/2019, 10:15 PMTomer
01/24/2019, 5:42 PMTalon
01/24/2019, 9:35 PMio.ktor.client.call.ReceivePipelineException: Fail to run receive pipeline
doesn't happen locally, I'm thinking maybe I need to configure the client differently or something?vnsgbt
01/30/2019, 2:28 PMLouis Saglio
01/30/2019, 7:41 PMfun Application.bank() {
install(Authentication) {
form("form") {
challenge = FormAuthChallenge.Unauthorized
passwordParamName = "password"
userParamName = "username"
validate { credentials ->
println("Credentials : ${credentials.name}, ${credentials.password}")
when {
credentials.name == "John" && credentials.password == "pa$$w0rd" -> UserIdPrincipal("John")
else -> null
}
}
}
}
routing {
authenticate("form") {
route("account") {
post {
call.respond(HttpStatusCode.OK, "connected")
}
}
}
}
}
To access the route /account I send this HTTP request :
POST <http://0.0.0.0:8081/account?username=Louis&password=pass>
But this raises an exception : io.ktor.features.CannotTransformContentToTypeException: Cannot transform this request's content to class io.ktor.http.Parameters
So I guess I should not give credentials to the server via POST body.
I have tried sending credentials in JSON with ContentNegocition installed but I get a similar error.
If someone could help me ...
I will update the documentation once I know how it works.neworldlt
02/11/2019, 7:35 PMHexa
02/13/2019, 3:46 PMthiagoretondar
02/17/2019, 5:35 PMthiagoretondar
02/17/2019, 5:35 PMorangy
02/17/2019, 5:39 PMaddamsson
02/17/2019, 5:40 PMthiagoretondar
02/17/2019, 7:08 PMtddmonkey
02/17/2019, 8:03 PMRobert Jaros
02/17/2019, 8:25 PMthiagoretondar
02/17/2019, 8:52 PMRobert Jaros
02/17/2019, 9:44 PMthiagoretondar
02/17/2019, 10:02 PMaddamsson
02/17/2019, 10:16 PMthiagoretondar
02/17/2019, 10:30 PMdave
02/17/2019, 10:31 PMtddmonkey
02/18/2019, 8:38 AMdave
02/18/2019, 9:07 AMtddmonkey
02/18/2019, 9:09 AMkenkyee
02/20/2019, 1:59 PMaddamsson
02/20/2019, 4:05 PM