зеркало из https://github.com/mozilla/pjs.git
changed method names to match new symantics
This commit is contained in:
Родитель
465be7e373
Коммит
f9aba8d0c5
|
@ -22,27 +22,32 @@
|
|||
* methods.
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsINetNotify.idl"
|
||||
|
||||
[scriptable, uuid(8D9430E0-0FB4-11d3-9DE6-0010A4053FD0)]
|
||||
interface nsIHttpNotify : nsISupports, nsIObserver {
|
||||
// Once all http headers have been downloaded and parsed out of the
|
||||
// stream, this method is called.
|
||||
//
|
||||
// ARGUMENTS:
|
||||
// aContext: An nsIProtocolConnection pointer.
|
||||
// aHeaders: All http headers (as defined in
|
||||
// http://www.w3.org/Protocols/HTTP/1.0/spec.html#Message-Headers)
|
||||
//
|
||||
// RETURNS: nsresult
|
||||
void OnHeaders(in nsISupports *aContext, in string aHeaders);
|
||||
[uuid(8D9430E0-0FB4-11d3-9DE6-0010A4053FD0)]
|
||||
interface nsIHTTPNotify : nsINetNotify {
|
||||
/* Before an HTTP request is sent to the server, this method is called.
|
||||
* The implementor of this method can the chose to set any additional
|
||||
* headers for this request before the request is actually sent to the
|
||||
* server. The HTTP PI (protocol interpreter) blocks on this call until
|
||||
* it returns.
|
||||
*
|
||||
* ARGUMENTS:
|
||||
* aContext: An nsISupports pointer, that should be queried for nsIHTTPChannel.
|
||||
*
|
||||
* RETURNS: nsresult
|
||||
*/
|
||||
void ModifyRequest(in nsISupports aContext);
|
||||
|
||||
// Before an http request is sent to the server, this method is called
|
||||
// to determine whether the external module wants to set any headers.
|
||||
// ARGUMENTS:
|
||||
// aContext: An nsIProtocolConnection pointer.
|
||||
// aHeaders: Any headers the external module wants set for this request.
|
||||
//
|
||||
// RETURNS: nsresult
|
||||
void SetHeaders(in nsISupports *aContext, out string aHeaders);
|
||||
/* After an HTTP server response is received, this method is called
|
||||
* asyncronously. The implementor can interrogate the nsIHTTPChannel as
|
||||
* it deems necessary. The HTTP PI (protocol interpreter) doesn't wait
|
||||
* for this method to return.
|
||||
*
|
||||
* ARGUMENTS:
|
||||
* aContext: An nsISupport pointer, that should be queried for nsIHTTPChannel.
|
||||
*
|
||||
* RETURNS: nsresult
|
||||
*/
|
||||
void AsyncExamineResponse(in nsISupports aContext);
|
||||
};
|
Загрузка…
Ссылка в новой задаче