B4J Question jOkHttpUtils2 timeout

tlc

New Member
Hi All,
can some one help me to understand how to set a faster time out on jOkHttpUtils2?

That's my code:

B4X:
    Dim job As HttpJob
    job.Initialize("Main page", Me)
    WebIP = "http://www.google.com/"
    job.Download(WebIP)
    job.GetRequest.Timeout = 10000     ' <--- don't work

Thank you

Mario
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

tlc

New Member
Hi,

this is the error when compiling:
-------------------------------
B4J Version: 5.90
Parsing code. (0.00s)
Compiling code. Error
Error compiling program.
Error description: Unknown type: anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest
Are you missing a library reference?
Error occurred on line: 98
job.GetRequest.Timeout = 10000
Word: timeout
-------------------------------

Line 98 is: job.GetRequest.Timeout = 10000
I think sintax is not correct ot timeout property dont' exist for GetRequest
I'm using jOkHttpUtils2 library and is already included in the project

Any help pls?

thenks
 
Upvote 0
Top