code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 43 forks source link

Client: no easy way to set User-Agent and From headers #42

Closed dmolesUC closed 9 years ago

dmolesUC commented 9 years ago

The OAI-PMH harvester guidelines specify that harversters should supply HTTP User-Agent and From headers. It seems like it might be theoretically possible to do this by passing a preconfigured Faraday instance when initializing the client, but it's far from obvious how to do that (I've just spent a fruitless half-hour Googling). Given that it's there in the guidelines, it would be nice if ruby-oai provided a simple way to do it out of the box.