Easy WebClient & WebFlux
WebClient GET Pattern
Traducción al español en progresoEl contenido detallado de esta lección aún se está traduciendo. Mientras tanto, se muestra en inglés.
Write the Kotlin code that demonstrates a WebClient GET request pattern. Create a mock function that simulates fetching a user by ID. Return a Mono with "User: John (id=1)". Print the result.
This exercises the pattern without needing actual HTTP.
Esperado
User: John (id=1)
Main.kt