bodyOrNull/respondOrNoContent

This commit is contained in:
2022-09-06 21:16:41 +06:00
parent 2cc6126765
commit ac58b6a7e3
3 changed files with 30 additions and 0 deletions

View File

@@ -2,6 +2,12 @@
## 0.12.8
* `Ktor`:
* `Client`:
* New extension `HttpClient#bodyOrNull` which returns `null` in case when server responded with `No Content` (204)
* `Server`:
* New extension `ApplicationCall#respondOrNoContent` which responds `No Content` (204) when passed data is null
## 0.12.7
* `Repos`: