Skip to content

Instantly share code, notes, and snippets.

@kinisoftware
Created July 14, 2019 16:29
Show Gist options
  • Select an option

  • Save kinisoftware/9245dd5592d3117dbe03c4e065685124 to your computer and use it in GitHub Desktop.

Select an option

Save kinisoftware/9245dd5592d3117dbe03c4e065685124 to your computer and use it in GitHub Desktop.
class LogResponseInterceptor : ResponseInterceptor {
override fun process(input: HandlerInput, response: Optional<Response>) {
response.ifPresent { println("Response: ${JacksonSerializer().serialize(it)}") }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment