Android Question OkHttpUtils2 library description

Isac

Active Member
Licensed User
Longtime User
Hi all,

where can I find the description of the OkHttpUtils2 library?



this error comes out:

B4A Versione: 12.20
Analisi del Codice. Error
Errore Analisi Programma.
Descrizione errore: Tipo sconosciuto: httpresponse
Manca un riferimento ad una libreria?
Errore nella linea: 59 (Main)
Sub hc_ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)




B4X:
ub hc_ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
    Log("Errore nella richiesta: " & Reason)
    xui.MsgboxAsync("Errore nella richiesta: " & Reason, "Errore")
End Sub



Thank you
 

drgottjr

Expert
Licensed User
Longtime User
this does not answer your question, sorry, but having a description of okhttputils2 is not going to help you because you're not running okhttputils2.
the correct signature for hc_ResponseError() in okhttputils2 is:
hc_ResponseError (Response As OkHttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
not:
hc_ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)

basically, there is no reason to mess with httpjob.bas and okhttputils2service.bas, but, as i say, you seem to be using the old, pre-okhttp version (long time ago)
 
Upvote 0
Top