Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

okhttp Sending and Receiving Network Requests 21

HttpUrl.Builder urlBuilder = HttpUrl.parse("https://ajax.googleapis.com/ajax/services/search/images").newBuilder();
urlBuilder.addQueryParameter("v", "1.0");
urlBuilder.addQueryParameter("q", "android");
urlBuilder.addQueryParameter("rsz", "8");
String url = urlBuilder.build().toString();

Request request = new Request.Builder()
                     .url(url)
                     .build();
Source by guides.codepath.com #
 
PREVIOUS NEXT
Tagged: #okhttp #Sending #Receiving #Network #Requests
ADD COMMENT
Topic
Name
1+7 =