Migrate RoutingContext methods removed in Vert.x 5

Proprietary

Vert.x 4 deprecated, and Vert.x 5 removed, the body and cookie methods of RoutingContext. getBodyAsJson() becomes body().asJsonObject(), getBodyAsString() becomes body().asString(), getBody() becomes body().buffer(), getCookie(name) becomes request().getCookie(name), addCookie(cookie) becomes response().addCookie(cookie), normalisedPath() becomes normalizedPath(), and so on.

io.moderne.vertx.MigrateRoutingContextAccessors
mod run . --recipe=io.moderne.vertx.MigrateRoutingContextAccessors

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.