OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 */ | 719 */ |
720 get responseHeaders() | 720 get responseHeaders() |
721 { | 721 { |
722 return this._responseHeaders || []; | 722 return this._responseHeaders || []; |
723 }, | 723 }, |
724 | 724 |
725 set responseHeaders(x) | 725 set responseHeaders(x) |
726 { | 726 { |
727 this._responseHeaders = x; | 727 this._responseHeaders = x; |
728 delete this._sortedResponseHeaders; | 728 delete this._sortedResponseHeaders; |
| 729 delete this._serverTimings; |
729 delete this._responseCookies; | 730 delete this._responseCookies; |
730 this._responseHeaderValues = {}; | 731 this._responseHeaderValues = {}; |
731 | 732 |
732 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.Respons
eHeadersChanged); | 733 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.Respons
eHeadersChanged); |
733 }, | 734 }, |
734 | 735 |
735 /** | 736 /** |
736 * @return {string} | 737 * @return {string} |
737 */ | 738 */ |
738 get responseHeadersText() | 739 get responseHeadersText() |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 * @return {!Array.<!WebInspector.Cookie>} | 779 * @return {!Array.<!WebInspector.Cookie>} |
779 */ | 780 */ |
780 get responseCookies() | 781 get responseCookies() |
781 { | 782 { |
782 if (!this._responseCookies) | 783 if (!this._responseCookies) |
783 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi
s.target(), this.responseHeaderValue("Set-Cookie")); | 784 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi
s.target(), this.responseHeaderValue("Set-Cookie")); |
784 return this._responseCookies; | 785 return this._responseCookies; |
785 }, | 786 }, |
786 | 787 |
787 /** | 788 /** |
| 789 * @return {?Array.<!WebInspector.ServerTiming>} |
| 790 */ |
| 791 get serverTimings() |
| 792 { |
| 793 if (typeof this._serverTimings === "undefined") |
| 794 this._serverTimings = WebInspector.ServerTiming.parseHeaders(this.ta
rget(), this.responseHeaders); |
| 795 return this._serverTimings; |
| 796 }, |
| 797 |
| 798 /** |
788 * @return {?string} | 799 * @return {?string} |
789 */ | 800 */ |
790 queryString: function() | 801 queryString: function() |
791 { | 802 { |
792 if (this._queryString !== undefined) | 803 if (this._queryString !== undefined) |
793 return this._queryString; | 804 return this._queryString; |
794 | 805 |
795 var queryString = null; | 806 var queryString = null; |
796 var url = this.url; | 807 var url = this.url; |
797 var questionMarkPosition = url.indexOf("?"); | 808 var questionMarkPosition = url.indexOf("?"); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); | 1195 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); |
1185 }, | 1196 }, |
1186 | 1197 |
1187 replayXHR: function() | 1198 replayXHR: function() |
1188 { | 1199 { |
1189 this.target().networkAgent().replayXHR(this.requestId); | 1200 this.target().networkAgent().replayXHR(this.requestId); |
1190 }, | 1201 }, |
1191 | 1202 |
1192 __proto__: WebInspector.SDKObject.prototype | 1203 __proto__: WebInspector.SDKObject.prototype |
1193 } | 1204 } |
OLD | NEW |