We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bdde80 commit 7aaf159Copy full SHA for 7aaf159
library/src/main/java/com/loopj/android/http/RequestParams.java
@@ -326,6 +326,19 @@ public void remove(String key) {
326
urlParamsWithObjects.remove(key);
327
}
328
329
+ /**
330
+ * Check if a parameter is defined.
331
+ *
332
+ * @param key the key name for the parameter to check existence.
333
+ * @return Boolean
334
+ */
335
+ public Boolean has(String key) {
336
+ return urlParams.get(key) != null ||
337
+ streamParams.get(key) != null ||
338
+ fileParams.get(key) != null ||
339
+ urlParamsWithObjects.get(key) != null;
340
+ }
341
+
342
@Override
343
public String toString() {
344
StringBuilder result = new StringBuilder();
0 commit comments