| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 */ | 721 */ |
| 722 get responseHeaders() | 722 get responseHeaders() |
| 723 { | 723 { |
| 724 return this._responseHeaders || []; | 724 return this._responseHeaders || []; |
| 725 }, | 725 }, |
| 726 | 726 |
| 727 set responseHeaders(x) | 727 set responseHeaders(x) |
| 728 { | 728 { |
| 729 this._responseHeaders = x; | 729 this._responseHeaders = x; |
| 730 delete this._sortedResponseHeaders; | 730 delete this._sortedResponseHeaders; |
| 731 delete this._serverTimings; |
| 731 delete this._responseCookies; | 732 delete this._responseCookies; |
| 732 this._responseHeaderValues = {}; | 733 this._responseHeaderValues = {}; |
| 733 | 734 |
| 734 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.Respons
eHeadersChanged); | 735 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.Respons
eHeadersChanged); |
| 735 }, | 736 }, |
| 736 | 737 |
| 737 /** | 738 /** |
| 738 * @return {string} | 739 * @return {string} |
| 739 */ | 740 */ |
| 740 get responseHeadersText() | 741 get responseHeadersText() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 * @return {!Array.<!WebInspector.Cookie>} | 781 * @return {!Array.<!WebInspector.Cookie>} |
| 781 */ | 782 */ |
| 782 get responseCookies() | 783 get responseCookies() |
| 783 { | 784 { |
| 784 if (!this._responseCookies) | 785 if (!this._responseCookies) |
| 785 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi
s.target(), this.responseHeaderValue("Set-Cookie")); | 786 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi
s.target(), this.responseHeaderValue("Set-Cookie")); |
| 786 return this._responseCookies; | 787 return this._responseCookies; |
| 787 }, | 788 }, |
| 788 | 789 |
| 789 /** | 790 /** |
| 791 * @return {?Array.<!WebInspector.ServerTiming>} |
| 792 */ |
| 793 get serverTimings() |
| 794 { |
| 795 if (typeof this._serverTimings === "undefined") |
| 796 this._serverTimings = WebInspector.ServerTimingParser.parseHeaders(t
his.target(), this.responseHeaders); |
| 797 return this._serverTimings; |
| 798 }, |
| 799 |
| 800 /** |
| 790 * @return {?string} | 801 * @return {?string} |
| 791 */ | 802 */ |
| 792 queryString: function() | 803 queryString: function() |
| 793 { | 804 { |
| 794 if (this._queryString !== undefined) | 805 if (this._queryString !== undefined) |
| 795 return this._queryString; | 806 return this._queryString; |
| 796 | 807 |
| 797 var queryString = null; | 808 var queryString = null; |
| 798 var url = this.url; | 809 var url = this.url; |
| 799 var questionMarkPosition = url.indexOf("?"); | 810 var questionMarkPosition = url.indexOf("?"); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); | 1197 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); |
| 1187 }, | 1198 }, |
| 1188 | 1199 |
| 1189 replayXHR: function() | 1200 replayXHR: function() |
| 1190 { | 1201 { |
| 1191 this.target().networkAgent().replayXHR(this.requestId); | 1202 this.target().networkAgent().replayXHR(this.requestId); |
| 1192 }, | 1203 }, |
| 1193 | 1204 |
| 1194 __proto__: WebInspector.SDKObject.prototype | 1205 __proto__: WebInspector.SDKObject.prototype |
| 1195 } | 1206 } |
| OLD | NEW |