kittinunf
02/11/2016, 4:08 PMsync()
? As we have a proper way to enter the sync
modeyoavst
02/11/2016, 5:11 PMyoavst
02/11/2016, 5:12 PMyoavst
02/11/2016, 5:13 PMyoavst
02/11/2016, 5:13 PM.sync()
yoavst
02/11/2016, 5:18 PMFuel.testMode {
timeout = X // will override timeout for all request
}
kittinunf
02/11/2016, 5:26 PMyoavst
02/13/2016, 6:46 PMsschneider
02/13/2016, 8:18 PMfun createUser(username: String, password: String, email: String, uuid: UUID, handler: (Boolean) -> Unit) {
val body = listOf("username" to username, "password" to password, "email" to email, "uuid" to uuid)
"/users".httpPost(body).response {request, response, result ->
when(result) {
is Result.Success -> handler(true)
is Result.Failure -> handler(false)
}
}
}
zzn2
02/14/2016, 6:21 AMyoavst
02/16/2016, 1:49 PMResult
to 1.0.0 (So Fuel
could be updated too)?cavega
02/16/2016, 1:56 PMkittinunf
02/16/2016, 3:39 PMorangy
kittinunf
02/16/2016, 4:38 PMyoavst
02/18/2016, 12:36 PMVitalii Dmitriev
02/18/2016, 8:10 PMhon
02/20/2016, 3:13 AMkittinunf
02/20/2016, 5:46 AMyoavst
02/25/2016, 7:10 PM<https://svc.mashov.info/api/mail/messages/$id/files/$id/$name>
. name is not url encoded. If I pass it like that, it fails, if I pre encode it, it encode it twice. idea?kittinunf
02/25/2016, 7:15 PMyoavst
02/25/2016, 7:15 PMyoavst
02/25/2016, 7:16 PMUri.parse("<https://svc.mashov.info/api/mail/messages/$id/files/$id/>").buildUpon().appendPath(name).build().toString()
yoavst
02/25/2016, 7:17 PMprivate fun Request.bugFix(url: String): Request {
this.path = url
this.url = URL(url)
return this
}
If I use this old method it works simple smilekittinunf
02/28/2016, 4:59 AMkittinunf
02/28/2016, 5:04 AMyoavst
03/03/2016, 3:16 PMyoavst
03/05/2016, 6:19 PMfun invalidCase() {
val file = "פרקי לימוד למבחן מספר 3 15 במרץ 2016.docx"
val path = "<https://svc.mashov.info/api/mail/messages/33967/files/33967/>" + file
val (request, response, data) = Fuel.get(path).validate(0..1000).responseString()
}
In this case request.path == path
yoavst
03/05/2016, 6:19 PMyoavst
03/05/2016, 6:23 PM<https://svc.mashov.info/api/mail/messages/33967/files/33967/פרקי%20לימוד%20למבחן%20מספר%203%2015%20במרץ%202016.docx>
(should be ASCII only)