HomePhabricator

Add X-Analytics header for API requests too

Authored by Legoktm.

Description

Add X-Analytics header for API requests too

Add a hook handler for APIAfterExecute, which runs after an API request.

"*fm" API formats use OutputPage, so they were already calling the
BeforePageDisplay hook. To avoid duplicating information,
XAnalytics::generateHeader() can only be called once per request.

Bug: T92875
Change-Id: I15a7fd78f13870f86d907f72ed7bdf2372e42aa1

Details

Committed
oriApr 22 2015, 6:00 PM
Parents
rEXANbe001e116885: Move BeforePageDisplay hook to separate class
Branches
Unknown
Tags
Unknown
References
refs/changes/00/202800/2
ChangeId
I15a7fd78f13870f86d907f72ed7bdf2372e42aa1