Continuous improvement of Zinc the cool HTTP library

Hi,

I added ZnUrl>>#withRelativeReference: which implements the process described in section 5 of RFC 3986.

https://pharo.fogbugz.com/f/cases/14855/Add-reference-resolution-to-ZnUrl

Summary:

In certain contexts (like links on a webpage) partial URLs are used that must be interpreted relative to a base URL (like the URL of the webpage itself).

Example:

  'http://www.site.com/static/html/home.html' asZnUrl
      withRelativeReference: '../js/menu.js'

  => http://www.site.com/static/js/menu.js

This was previously not possible with ZnUrl. 

If you know this stuff, please have a look. 

Monty ? Peter ?

Sven

PS: this is in #bleedingEdge for now

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: