[Twisted-Python] HTML shoudl not be baked into twisted.web HTTPimplementation

Tristan Seligmann mithrandi at mithrandi.net
Thu Dec 10 05:01:00 EST 2009

On Thu, Dec 10, 2009 at 3:10 AM, Jared Gisin <jared.gisin at isilon.com> wrote:
> It's unambiguously the correct default if you incorrectly assume that
> you're always dealing with a web browser client, which is an invalid
> assumption.

Web browser clients are the most common case, at least at this point
in time. On the flip side, if you don't assume a web browser client,
you can't assume anything; why would a client be more likely to be
able to handle text/plain than text/html? If it's trying to actually
parse the error response (SOAP comes to mind), neither of those
representations are likely to be of use to the client, so you need to
implement your own error handler anyway, to send back XML (or
mithrandi, i Ainil en-Balandor, a faer Ambar

More information about the Twisted-Python mailing list