missing code
@@ -71,6 +71,14 @@ oc_get_query_value(oc_request_t *request, const char *key, char **value)
return oc_ri_get_query_value(request->query, request->query_len, key, value);
}
+int
+oc_query_value_exists(oc_request_t* request, const char* key)
+{
+ if (!request)
+ return -1;
+ return oc_ri_query_exists(request->query, request->query_len, key);
+}
+
static int
response_length(void)
{
