You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/net/b07z/sepia/server/core/tools/Connectors.java
+24-7Lines changed: 24 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -268,15 +268,27 @@ public static JSONObject httpGET(String url) {
268
268
/**
269
269
* Make HTTP GET request to URL and get JSON response. Check with {@code httpSuccess(...)} for status.
270
270
* @param url - URL address to call including none or only some parameters
271
-
* @param params - additional parameters added to URL (use e.g. "?q=search_term" or "&type=json" etc.)
271
+
* @param params - additional parameters added to URL (use e.g. "?q=search_term" or "&type=json" etc.) or null
272
272
* @return JSONObject response of URL call - Note: if response is not JSON it will be placed e.g. as "STRING" field in the result or "JSONARRAY" if it's an array.
* Make HTTP GET request to URL and get JSON response. Check with {@code httpSuccess(...)} for status.
279
+
* @param url - URL address to call including none or only some parameters
280
+
* @param params - additional parameters added to URL (use e.g. "?q=search_term" or "&type=json" etc.) or null
281
+
* @param headers - Map with request properties (keys) and values.
282
+
* @return JSONObject response of URL call - Note: if response is not JSON it will be placed e.g. as "STRING" field in the result or "JSONARRAY" if it's an array.
0 commit comments