| 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 */ | 724 */ |
| 725 get responseHeaders() | 725 get responseHeaders() |
| 726 { | 726 { |
| 727 return this._responseHeaders || []; | 727 return this._responseHeaders || []; |
| 728 }, | 728 }, |
| 729 | 729 |
| 730 set responseHeaders(x) | 730 set responseHeaders(x) |
| 731 { | 731 { |
| 732 this._responseHeaders = x; | 732 this._responseHeaders = x; |
| 733 delete this._sortedResponseHeaders; | 733 delete this._sortedResponseHeaders; |
| 734 delete this._serverTimings; |
| 734 delete this._responseCookies; | 735 delete this._responseCookies; |
| 735 this._responseHeaderValues = {}; | 736 this._responseHeaderValues = {}; |
| 736 | 737 |
| 737 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.Respons
eHeadersChanged); | 738 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.Respons
eHeadersChanged); |
| 738 }, | 739 }, |
| 739 | 740 |
| 740 /** | 741 /** |
| 741 * @return {string} | 742 * @return {string} |
| 742 */ | 743 */ |
| 743 get responseHeadersText() | 744 get responseHeadersText() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 * @return {!Array.<!WebInspector.Cookie>} | 784 * @return {!Array.<!WebInspector.Cookie>} |
| 784 */ | 785 */ |
| 785 get responseCookies() | 786 get responseCookies() |
| 786 { | 787 { |
| 787 if (!this._responseCookies) | 788 if (!this._responseCookies) |
| 788 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi
s.target(), this.responseHeaderValue("Set-Cookie")); | 789 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi
s.target(), this.responseHeaderValue("Set-Cookie")); |
| 789 return this._responseCookies; | 790 return this._responseCookies; |
| 790 }, | 791 }, |
| 791 | 792 |
| 792 /** | 793 /** |
| 794 * @return {?Array.<!WebInspector.ServerTiming>} |
| 795 */ |
| 796 get serverTimings() |
| 797 { |
| 798 if (typeof this._serverTimings === "undefined") |
| 799 this._serverTimings = WebInspector.ServerTiming.parseHeaders(this.re
sponseHeaders); |
| 800 return this._serverTimings; |
| 801 }, |
| 802 |
| 803 /** |
| 793 * @return {?string} | 804 * @return {?string} |
| 794 */ | 805 */ |
| 795 queryString: function() | 806 queryString: function() |
| 796 { | 807 { |
| 797 if (this._queryString !== undefined) | 808 if (this._queryString !== undefined) |
| 798 return this._queryString; | 809 return this._queryString; |
| 799 | 810 |
| 800 var queryString = null; | 811 var queryString = null; |
| 801 var url = this.url; | 812 var url = this.url; |
| 802 var questionMarkPosition = url.indexOf("?"); | 813 var questionMarkPosition = url.indexOf("?"); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 /** | 1232 /** |
| 1222 * @return {!WebInspector.NetworkManager} | 1233 * @return {!WebInspector.NetworkManager} |
| 1223 */ | 1234 */ |
| 1224 networkManager: function() | 1235 networkManager: function() |
| 1225 { | 1236 { |
| 1226 return this._networkManager; | 1237 return this._networkManager; |
| 1227 }, | 1238 }, |
| 1228 | 1239 |
| 1229 __proto__: WebInspector.SDKObject.prototype | 1240 __proto__: WebInspector.SDKObject.prototype |
| 1230 } | 1241 } |
| OLD | NEW |