QotD    "To be or not to be" – Shakespeare
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Last updated at 5:17 am UTC on 25 March 2019
 Object subclass: #Url
	instanceVariableNames: 'fragment'
	classVariableNames: 'SchemeRegistry'
	poolDictionaries: ''
	category: 'Network-Url'

A Uniform Resource Locator. It specifies the location of a document on the Internet. The base class is abstract; child classes break different types of URLs down in ways appropriate for that type.

 Url printHierarchy 
		Url #(''fragment'')
			FileUrl #(''host'' ''path'' ''isAbsolute'')
			GenericUrl #(''schemeName'' ''locator'')
				BrowserUrl #()
				MailtoUrl #()
			HierarchicalUrl #(''schemeName'' ''authority'' ''path'' ''query'' ''port'' ''username'' ''password'')
				FtpUrl #()
				HttpUrl #(''realm'')
				   MswUrl #()'

 'http://wiki.squeak.org/squeak/2782' asUrl
 Url absoluteFromText: 'http://wiki.squeak.org/squeak/2782'
and the result is

 'http://wiki.squeak.org/squeak/2782' asUrl retrieveContents
gives back aMIMEDocument.