[Helma-user] downloading binaries with helma.Http

Hannes Wallnoefer hannesw at gmail.com
Mon Nov 20 14:53:12 CET 2006


2006/11/14, Hannes Wallnoefer <hannesw at gmail.com>:
> 2) add a switch to the Http class that lets people choose if they want
> their content raw or stringified. Default could be stringified, so
> that would preserve backwards compatibility. What I don't know is how
> that switch method/property would be called.

OK, I'm trying to come up with some naming convention for this
approach. After some thinking and tinkering, I've come to this
proposal on how to switch text/binary mode on the HTTP client:

http.setMode(Http.BINARY);
http.setMode(Http.TEXT);

My backup proposals being:

http.useBinaryMode();
http.useTextMode();

or:

http.setBinaryMode();
http.setTextMode();

any other proposals?

hannes


More information about the Helma-user mailing list