On Tuesday, January 24, 2012 6:51:41 PM UTC+1, Nathan Mische wrote: > > Several Firebug extensions read custom HTTP header info and display > the contents in Firebug: FirePHP, FireLogger, and my extension, > ColdFire, just to name a few. The issue we face with the NetMonitor > API as it is now is that onResponse() may be called before the the > file.responseHeaders element is created.
Do you have a test case showing that the file.responseHeaders field is not set? Perhaps we could fix this instead of introducing a new event? > Listening for > onResponseBody() seems to get around this issue, but that event is not > fired for all requests, redirects in particular. > So I'd like to > propose a new NetMonitor listener API method, onResponseHeaders(). > This could be broadcast from the NetUtils.getHttpHeaders() when the > file.responseHeaders are created. Thoughts? Do you already have a specific place in the NetMonitor where such event should be fired? Honza --Nathan > -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at https://groups.google.com/forum/#!forum/firebug
