The Trunk: Network-ar.88.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Network-ar.88.mcz

commits-2
Andreas Raab uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-ar.88.mcz

==================== Summary ====================

Name: Network-ar.88
Author: ar
Time: 4 September 2010, 11:29:09.368 am
UUID: e077f2b6-ada6-d249-a045-4db7cc70ed2f
Ancestors: Network-ar.87

Provide String>>urlEncoded as a convenient and obvious way to encode entire URLs properly.

=============== Diff against Network-ar.87 ===============

Item was added:
+ ----- Method: String>>urlEncoded (in category '*network-url') -----
+ urlEncoded
+ "Encode the receiver, which is assumed to be URL, properly.
+ This method is specific to URLs in such that it will parse
+ the url and perform a semantically correct substitution, for example:
+
+ 'http://squeak.org/name with space?and=value' encodeForHTTP.
+ => 'http%3A%2F%2Fsqueak.org%2Fname%20with%20space%3Fand%3Dvalue'
+
+ 'http://squeak.org/name with space?and=value' urlEncoded.
+ => 'http://squeak.org/name%20with%20space?and=value"
+
+ ^self asUrl asString!