Skip to content

Commit 79bb40b

Browse files
committed
Better deprecation message
1 parent d0b50b5 commit 79bb40b

File tree

1 file changed

+1
-1
lines changed
  • http4k-core/src/main/kotlin/org/http4k/core

1 file changed

+1
-1
lines changed

http4k-core/src/main/kotlin/org/http4k/core/http.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,6 @@ data class MemoryResponse(override val status: Status, override val headers: Hea
241241

242242
fun <T> T.with(vararg modifiers: (T) -> T): T = modifiers.fold(this) { memo, next -> next(memo) }
243243

244-
@Deprecated("This is", ReplaceWith("Body(this)", "org.http4k.core.Body"))
244+
@Deprecated("Removed in favour of explicit body creation", ReplaceWith("Body(this)", "org.http4k.core.Body"))
245245
fun String.toBody(): Body = Body(this)
246246

0 commit comments

Comments
 (0)