On Thu, Nov 10, 2011 at 4:37 PM, Vassilis Radis radisb@gmail.com wrote:
How exactly hunchentoot understands what kind of content-type my handler's return string contains?
It understands nothing about the content type. All it does is add a "charset" attribute to the content-type header if the returned content is a string and the content type begins with "text/". Your handlers still have to set the content type to the appropriate base type, but they don't need (and should not) set a charset attribute because that is automatically determined by Hunchentoot (through the external format).
Let us know if you have further questions.
-Hans