Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsIHttpProtocolHandler.idl File Reference
import "nsIProxiedProtocolHandler.idl";

Go to the source code of this file.

Classes

interface  nsIHttpProtocolHandler

Defines

#define NS_HTTP_STARTUP_CATEGORY   "http-startup-category"
 At initialization time, the HTTP handler will initialize each service registered under this category:
#define NS_HTTP_STARTUP_TOPIC   "http-startup"
 nsIObserver notification corresponding to startup category.
#define NS_HTTP_ON_MODIFY_REQUEST_TOPIC   "http-on-modify-request"
 Before an HTTP request is sent to the server, this observer topic is notified.
#define NS_HTTP_ON_EXAMINE_RESPONSE_TOPIC   "http-on-examine-response"
 After an HTTP server response is received, this observer topic is notified.
#define NS_HTTP_ON_EXAMINE_MERGED_RESPONSE_TOPIC   "http-on-examine-merged-response"
 The observer of this topic is notified after the received HTTP response is merged with data from the browser cache.

Define Documentation

#define NS_HTTP_ON_EXAMINE_MERGED_RESPONSE_TOPIC   "http-on-examine-merged-response"

The observer of this topic is notified after the received HTTP response is merged with data from the browser cache.

This means that, among other things, the Content-Type header will be set correctly.

Definition at line 159 of file nsIHttpProtocolHandler.idl.

#define NS_HTTP_ON_EXAMINE_RESPONSE_TOPIC   "http-on-examine-response"

After an HTTP server response is received, this observer topic is notified.

The observer of this topic can interrogate the response. The "subject" of the notification is the nsIHttpChannel instance.

Definition at line 152 of file nsIHttpProtocolHandler.idl.

Before an HTTP request is sent to the server, this observer topic is notified.

The observer of this topic can then choose to set any additional headers for this request before the request is actually sent to the server. The "subject" of the notification is the nsIHttpChannel instance.

Definition at line 145 of file nsIHttpProtocolHandler.idl.

#define NS_HTTP_STARTUP_CATEGORY   "http-startup-category"

At initialization time, the HTTP handler will initialize each service registered under this category:

Definition at line 128 of file nsIHttpProtocolHandler.idl.

#define NS_HTTP_STARTUP_TOPIC   "http-startup"

nsIObserver notification corresponding to startup category.

Services registered under the startup category will receive this observer topic at startup if they implement nsIObserver. The "subject" of the notification is the nsIHttpProtocolHandler instance.

Definition at line 137 of file nsIHttpProtocolHandler.idl.