Package dev.relism.flash.ext.jackson
Class Marshalling
java.lang.Object
dev.relism.flash.ext.jackson.Marshalling
Turns whatever a handler returns into a serialized body.
Pass-through for what is already a response: null, a Response, a
byte[] or a CharSequence. Everything else is serialized straight to bytes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic dev.relism.flash.routing.Middlewareof(com.fasterxml.jackson.databind.ObjectMapper mapper, dev.relism.flash.http.ContentType contentType)
-
Method Details
-
of
public static dev.relism.flash.routing.Middleware of(com.fasterxml.jackson.databind.ObjectMapper mapper, dev.relism.flash.http.ContentType contentType)
-