[hunchentoot-devel] external-format and content-type question

Hans Hübner hans.huebner at gmail.com
Thu Nov 10 15:44:15 UTC 2011


On Thu, Nov 10, 2011 at 4:37 PM, Vassilis Radis <radisb at 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




More information about the Tbnl-devel mailing list