Serializer ========== .. java:package:: io.aalam.common :noindex: .. java:type:: public interface Serializer The data serializer used in general to serialize the response content. Methods ------- serialize ^^^^^^^^^ .. java:method:: public void serialize(HttpRequest request, HttpResponse response) :outertype: Serializer This method should set the response data in the response and the neccessary modifications in the response headers. For example, if this method is used to send a json response, it should set the response content, and then modify the content type header to application/json :param request: The request object of the the current request it is processing :param response: The response object that will be used to send the response to the request **See also:** :java:ref:`HttpRequest`, :java:ref:`HttpResponse`