Formats a string using standard printf style verbs.
printf
format(format: string, ...args: any) -> string
Returns the documented result for the function signature.
respond { status = 200 body = { message = format("User %s has %d items in cart", ctx.request.path.name, 4) } }