Robert Jaros
08/25/2020, 2:40 PMNikky
08/25/2020, 2:44 PMkittinunf
08/26/2020, 1:50 AMitnoles
09/11/2020, 11:43 PMNikky
09/13/2020, 3:51 PMkittinunf
09/14/2020, 3:40 AMkittinunf
09/14/2020, 3:40 AMYamila Gammeri
09/21/2020, 10:47 AMnetworkService.fuelManager.request(BTXInteractApi.GetLegal()).awaitObjectResult<LegalModel>(kotlinxDeserializerOf(json = networkService.json()))
, I was wondering how I could check the HTTP status code and then decode the response into another model based on this.
2. The API I鈥檓 using requires the use of an access token + refresh token, is it possible to configure fuel such that I can intercept a failed auth request and then update the session using the access token? E.g.聽 a request is made, server responds with 401, another request is made to refresh session, original request is sent again, response is receivedBrett Best
09/24/2020, 5:46 AMLeoColman
10/27/2020, 7:34 PMrequest, response, result
stuff and go directly to the result part?LeoColman
10/27/2020, 7:34 PM"x".httpGet().responseString()
and get it as a stringLeoColman
10/27/2020, 7:34 PMLeoColman
10/27/2020, 7:34 PMkittinunf
10/28/2020, 10:49 AM.responseString().third
Ncrnomarkovic
11/24/2020, 7:17 PMArkangel
12/13/2020, 3:35 PMArkangel
12/13/2020, 3:35 PMArkangel
12/13/2020, 3:35 PMFuelManager.instance.addRequestInterceptor(tokenInterceptor())
fun tokenInterceptor() = {
next: (Request) -> Request ->
{ req: Request ->
req.header(mapOf("Authorization" to "Bearer AbCdEf123456"))
next(req)
}
}
Arkangel
12/13/2020, 3:36 PMArkangel
12/13/2020, 3:36 PMArkangel
12/13/2020, 3:36 PMpgreze
02/04/2021, 6:51 AMOutOfMemoryError: Java heap space
I鈥檓 facing.
I鈥檓 trying to download a file and write its content in a file like that:
val result = location.httpGet().response()
destination.writeBytes(result.third.get())
Is there some built-in helper in order to help avoiding memory issues?
thx in advance 馃檹Emil Kantis
02/04/2021, 8:18 AMurl.httpPost()
for instance, but I would like to somehow validate the requests that are madeitnoles
03/03/2021, 12:33 AMDerk-Jan Karrenbeld
03/03/2021, 12:39 AMitnoles
03/03/2021, 12:40 AMDerk-Jan Karrenbeld
03/03/2021, 1:20 AMitnoles
03/03/2021, 4:24 AMDerk-Jan Karrenbeld
03/05/2021, 1:58 AMitnoles
12/15/2022, 4:10 AM