[Helma-user] downloading binaries with helma.Http
Hannes Wallnoefer
hannesw at gmail.com
Tue Nov 21 11:01:06 CET 2006
2006/11/20, thomas <thomas at nowhere.at>:
>
> I think your first proposal fits best. The two other need two methods
> (useBinaryMode(), useTextMode()) and i think its an advantage to minimize
> the overall count of methods.
> >
> > http.setMode(Http.BINARY);
> > http.setMode(Http.TEXT);
Oops, of course that would then be
http.setMode(helma.Http.BINARY);
http.setMode(helma.Http.TEXT);
which is a bit more verbose than I'd want. After a bit more thinking,
I now came up with a new boolean textMode property, which defaults to
true:
http.setTextMode(true|false);
http.getTextMode();
any substantial objections?
hannes
More information about the Helma-user
mailing list