~racb/simplestreams/optimise-read_signed

Viewing all changes in revision 427.

  • Committer: Scott Moser
  • Date: 2016-05-05 04:06:49 UTC
  • mfrom: (423.2.8 custom-user-agent)
  • Revision ID: smoser@ubuntu.com-20160505040649-hgwl8q237m3hs4us
Add user-agent support

This adds user-agent support.  The library user may want to
provide a specific user agent when querying a remote mirror.

Because of the code structure, there's some not-very-nice code in here, mainly
the use of url_reader_factory function, but without knowing what parts of
simplestreams API we want to keep backward compatible, I refrained from
changing anything of the existing code too much.

There are tests for all the new code, and for some of the old code that was
untested.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: