-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheaders.min.js
8 lines (8 loc) · 937 Bytes
/
headers.min.js
1
2
3
4
5
6
7
8
/**
* angular-hu-headers v1.1.0
* https://github.com/angular-hu/angular-hu
* (c) 2015 Telefónica I+D - http://www.tid.es
* @license MIT
*/
!function(t){"use strict";function e(){return function(e){var n=e.put;return e.put=function(r,u){return t.isArray(u)&&t.isNumber(u[0])&&t.isObject(u[2])&&(u[2]["httpu-cached-at"]=String(Date.now())),n.call(e,r,u)},e}}function n(t){t.decorator("$httpBackend",r)}function r(e){function n(){function t(){var t=Array.prototype.slice.call(arguments),e=(new Date).getTime(),n=t[2];n=n||"",n+="\nhttpu-request-time: "+(e-a),n+="\nhttpu-request-url: "+u,t[2]=n,r.apply(this,t)}var n=Array.prototype.slice.call(arguments),r=n[3],u=n[1],a=(new Date).getTime();return n[3]=t,e.apply(this,n)}return t.forEach(e,function(t,e){n[e]=t}),n}t.module("httpu.headers",[]).factory("huFromCache",e).config(n),n.$inject=["$provide"],r.$inject=["$delegate"]}(window.angular);
//# sourceMappingURL=headers.min.js.map