[squeak-dev] The Trunk: Network-ar.82.mcz

Frank Shearar frank.shearar at angband.za.org
Wed Sep 1 08:25:38 UTC 2010


On 2010/09/01 07:32, commits at source.squeak.org wrote:
> Andreas Raab uploaded a new version of Network to project The Trunk:
> http://source.squeak.org/trunk/Network-ar.82.mcz
>
> ==================== Summary ====================
>
> Name: Network-ar.82
> Author: ar
> Time: 1 September 2010, 12:32:08.542 am
> UUID: aa52635f-d746-5744-b432-582c5ba62b11
> Ancestors: Network-ul.81
>
> Use HttpUrl when dealing with https, i.e., 'https://encrypted.google.com' asUrl class == HttpUrl
>
> =============== Diff against Network-ul.81 ===============
>
> Item was changed:
>    ----- Method: Url class>>urlClassForScheme: (in category 'parsing') -----
>    urlClassForScheme: scheme
>    	(scheme isNil or: [scheme = 'http']) ifTrue: [^HttpUrl].
> + 	scheme = 'https' ifTrue: [^HttpUrl].
>    	scheme = 'ftp' ifTrue: [^FtpUrl].
>    	scheme = 'file' ifTrue: [^FileUrl].
>    	scheme = 'mailto' ifTrue: [^MailtoUrl].
>    	scheme = 'browser' ifTrue: [^BrowserUrl].
>    	^GenericUrl!

That reminds me: for my SipStack I would need to touch this method (*), 
as would any other packages using other kinds of URLs.

Perhaps we need a registry-based approach, so that we can safely load 
multiple URL-defining packages?

I see no point in having SipUrl become part of Network, because most 
images won't use it. Protocols like HTTP and FTP are pretty much 
ubiquitous on the other hand, so it makes sense to keep them in 
Network(-Url).

frank

(*) Since I wrote this long long ago, I actually modified Url 
class>>absoluteFromText:.



More information about the Squeak-dev mailing list