[Pkg] The Trunk: Network-ar.88.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Sep 4 18:29:41 UTC 2010

Andreas Raab uploaded a new version of Network to project The Trunk:

==================== 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!

More information about the Packages mailing list