Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
machine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
android
machine
Commits
68fc6a55
Commit
68fc6a55
authored
Aug 17, 2022
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add update
parent
890f84ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
app/src/main/java/com/ihaoin/hooloo/device/network/HttpUtil.java
+2
-1
No files found.
app/src/main/java/com/ihaoin/hooloo/device/network/HttpUtil.java
View file @
68fc6a55
...
...
@@ -13,6 +13,7 @@ import java.io.IOException;
import
java.net.NetworkInterface
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.concurrent.TimeUnit
;
import
okhttp3.Call
;
import
okhttp3.Callback
;
...
...
@@ -44,7 +45,7 @@ public class HttpUtil {
}
public
static
void
get
(
String
url
,
Handler
handler
)
{
OkHttpClient
client
=
new
OkHttpClient
();
OkHttpClient
client
=
new
OkHttpClient
.
Builder
().
callTimeout
(
15
,
TimeUnit
.
SECONDS
).
readTimeout
(
15
,
TimeUnit
.
SECONDS
).
build
();
Request
request
=
new
Request
.
Builder
().
url
(
url
).
get
().
build
();
client
.
newCall
(
request
).
enqueue
(
new
Callback
()
{
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment