A marker trait denoting the default MessageBodyWriter for the HTTP server. This default
MessageBodyWriter is invoked by either the com.twitter.finatra.http.internal.marshalling.CallbackConverter
(by invoking the com.twitter.finatra.http.response.ResponseBuilder) or
com.twitter.finatra.http.response.ResponseBuilder#write directly to return a suitable
response for a given return type.
A marker trait denoting the default MessageBodyWriter for the HTTP server. This default MessageBodyWriter is invoked by either the com.twitter.finatra.http.internal.marshalling.CallbackConverter (by invoking the com.twitter.finatra.http.response.ResponseBuilder) or com.twitter.finatra.http.response.ResponseBuilder#write directly to return a suitable response for a given return type.
The framework binds com.twitter.finatra.http.internal.marshalling.DefaultMessageBodyWriterImpl as an overridable implementation via the com.twitter.finatra.http.modules.MessageBodyModule. To override this implementation, provide a customized com.twitter.inject.TwitterModule by overriding com.twitter.finatra.http.HttpServer.messageBodyModule, e.g.,
The framework default MessageBodyWriter will attempt to convert the outgoing type
T
to a JSON response using the server's configured com.twitter.finatra.json.FinatraObjectMapper.https://twitter.github.io/finatra/user-guide/json/routing.html#responses
com.twitter.finatra.http.HttpServer.messageBodyModule
com.twitter.finatra.http.modules.MessageBodyModule
com.twitter.finatra.http.internal.marshalling.MessageBodyManager
com.twitter.finatra.http.internal.marshalling.DefaultMessageBodyWriterImpl