Re: [Pharo-project] [Progress Report] Zinc HTTP Components
Matt Sven I love to see your framework emerging like that. Keep pushing. This is a warm feeling for us (with our head in the gory details of the system) so see that other people are creating cool abstractions on top of it. Stef
Hi everyone,
On Oct 1, 2010, at 8:10 AM, Lukas Renggli wrote:
Wow, very impressive.
What I would like to see is some kind of high-level API for convenient access to all features. Something along
response := ZnHttp new url: 'http://www.foo.com'; userAgent: 'FakeAgent'; cookieAt: 'something' put: '123'; parameterAt: 'q' put: 'smalltalk'; onFailure: [ :error | self inform: 'failed' ]; onProgress: [ :status | ... ]; get
Lukas
This is actually where I'd like to head with the client API. I had started my own HTTP client about 2 days before Sven announced Zinc, so it made more sense contribute to his project. My initial work was a subclass off of ProtocolClient and was kind of monolithic, so my first steps have been to make things mesh nicely with Zinc.
My initial prototype before I started working on Zinc had a very similar API to your example, so my thoughts are definitely aimed for that direction.
Matt _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (1)
-
Stéphane Ducasse