Sounds good.
Do we want to document that as well ? Because you mention the example of a company building a Ruby Sender, maybe they would like to use that custom header as well for their stats.



On Mon, Jun 2, 2014 at 11:44 AM, Matthias Wessendorf <matzew@apache.org> wrote:
Good afternoon!

for [1] I'd like to propose we introduce a custom http-header ('aerogear-sender') to be submitted by our "clients" that perform a send in order to show the user on the 'stats' page what client was used to submit a 'push job' to the server.

I have identified the following clients to be updated (see sub-tasks of [1]):
* Java-Sender
* Node-Sender
* AdminUI (compose a push UI part)

On our clients we can simply apply the new custom header, however that does not work for pure invocation of our REST APIs (e.g. via cURL or if someone did build their own sender (E.g. some company builds an internal Ruby sender)).  For that case I suggest to simply read the "user-agent" header.

Basic rule: If there is no "aerogear-sender" header present, we read the value of the "user-agent" header.

Any thoughts ? 

-Matthias

[1] https://issues.jboss.org/browse/AGPUSH-653



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev