mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-13 15:33:23 +00:00
ReadKeyValuesRepo#removeWithValue
This commit is contained in:
1 parent
4e97ce86aa
commit
5f231c2212
12 files changed
+147
-3
No files matched your search
+11
@@ -47,6 +47,17 @@ class KtorWriteKeyValuesRepoClient<Key : Any, Value : Any>(
|
||||
}.throwOnUnsuccess { "Unable to remove $toRemove" }
|
||||
}
|
||||
|
||||
@OptIn(InternalAPI::class)
|
||||
override suspend fun removeWithValue(v: Value) {
|
||||
httpClient.post(
|
||||
buildStandardUrl(baseUrl, removeWithValueRoute)
|
||||
) {
|
||||
body = v
|
||||
bodyType = valueTypeInfo
|
||||
contentType(contentType)
|
||||
}.throwOnUnsuccess { "Unable to remove $v" }
|
||||
}
|
||||
|
||||
@OptIn(InternalAPI::class)
|
||||
override suspend fun clear(k: Key) {
|
||||
httpClient.post(
|
||||
|
||||
Reference in new issue
Block a user