We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d28f7 commit 7368616Copy full SHA for 7368616
plugin/platforms/android/java/com/nativescript/https/OkHttpResponse.java
@@ -19,6 +19,8 @@
19
import okhttp3.Response;
20
import okhttp3.Headers;
21
22
+import org.json.JSONObject;
23
+
24
public class OkHttpResponse {
25
private final static String TAG = "OkHttpResponse";
26
private ResponseBody responseBody;
@@ -458,11 +460,9 @@ public void run() {
458
460
public static int getStatusCode(Response response) {
459
461
return response.code();
462
}
-
463
public static String getMessage(Response response) {
464
return response.message();
465
466
public static String getHeaders(Response response) throws Exception {
467
JSONObject obj = new JSONObject();
468
Headers headers = response.headers();
0 commit comments