[Cuis-dev] New package: Cuis-Smalltalk-URI
Mariano Montone
marianomontone at gmail.com
Tue Jan 7 10:04:45 PST 2025
El 7/1/25 a las 14:33, olivier auverlot via Cuis-dev escribió:
> This is just a lightweight package I wrote to make URI construction
> easier. I don't think it's essential, it's just handy for my current
> project.
I would argue URIs are a very common thing and present across different
types of projects, and the good way to handle them is treating them not
as strings, and so having an utility package for URI manipulations makes
sense IMO.
Btw, about the design, I think I would make the api more
straightforward, not include the intermediate objects.
Something like:
|URI scheme: #https authentication: (URIAuthentication username: 'john'
password: '1234') host: 'www.domain.com' port: 8080 path: '/folder/file'
query: {'id' -> 42. 'name' -> 'john.doe'} fragment: 'row=1'. |
Is this the only library available for URIs?
Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250107/d8acf972/attachment.htm>
More information about the Cuis-dev
mailing list