[Helma-user] downloading binaries with helma.Http

thomas thomas at nowhere.at
Mon Nov 20 15:12:40 CET 2006


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.

thomas 

On Mon, 20 Nov 2006, Hannes Wallnoefer wrote:

> 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
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
> 


More information about the Helma-user mailing list