|
Re: downloading binaries with helma.Http: msg#00012java.helma.general
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@xxxxxxxxx>: > > 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@xxxxxxxxx > http://helma.org/mailman/listinfo/helma-user >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: downloading binaries with helma.Http, Hannes Wallnoefer |
|---|---|
| Next by Date: | Re: downloading binaries with helma.Http, Hannes Wallnoefer |
| Previous by Thread: | Re: downloading binaries with helma.Http, Hannes Wallnoefer |
| Next by Thread: | Re: downloading binaries with helma.Http, Hannes Wallnoefer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |