we're having our weekly git hacking session and are working on the http 
protocol.

The smart git protocol simply runs over http, nothing too fancy once you found 
the 
documentation (which is the hardest part).

Now we want to post a request and wanted to directly stream it to the server, 
but 
we only figure out on how to do it using an intermediate string. The code looks
something like this:


        requestContents := self createGitRequestEntity.
        client := ZnClient new
                url: 'https://github.com/pharo-project/phar-core';
                entity: (requestContents);
                post.

Now I would like to do something like this.     


        postStream := ZnClient new
                url: 'https://github.com/pharo-project/phar-core';
                postStream.
        self writeGitRequestOn: postStream


How can I do that in Zn? I already skimmed the documentation but it only shows
the example of files, where we copy over from a fully existing source.

best
cami

Reply via email to