[email protected] wrote:
On Fri, Jul 31, 2009 at 06:25:31PM -0500, Shawn Walker wrote:
I can only think of two transport bits I'll need:

* the ability to perform conditional GETs (if-modified-since) from a repository via '/catalog/1/' passing along any client headers that we would for '/file/'.

There are two ways to do this: attach the If-Modified-Since header
ourselves, or use libcurl to do so.  In the first case you could either
supply it as a header, or we could configure it as an argument.  In the
second case, you'd need to give the value to curl as a long that
represents the UTC seconds since 1970 of the last modified time.

I'd prefer it be the latter (an argument), so the transport layer can hide the fact that it is transmitted as a header since the transport method (file://) may change that. As long as the format is documented, it doesn't matter to me. Although, being able to pass a UTC datetime object seems the sanest option, allowing the transport layer to determine what format it should be in for the other end.

* the ability to perform pipelined GETs from /catalog/1/ to retrieve the catalog parts and updatelog files.

Ok, I can do this.

You probably also want the ability to determine which origins for a
publisher support catalog/1.  In the case where catalog/1 to the optimal
host fails, we'd probably want to pick another catalog/1 host before
falling back to those that support catalog/0.

That sounds right.

Thanks!
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to