Public Member Functions

nsIHTTPHeaderListener Interface Reference

The nsIHTTPHeaderListener interface allows plugin authors to access HTTP Response headers after issuing an nsIPluginHost::{GetURL,PostURL}() call. More...

import "nsIHTTPHeaderListener.idl";

List of all members.

Public Member Functions

void newResponseHeader (in string headerName, in string headerValue)
 Called for each HTTP Response header.
void statusLine (in string line)
 Called once for the HTTP Response status line.

Detailed Description

The nsIHTTPHeaderListener interface allows plugin authors to access HTTP Response headers after issuing an nsIPluginHost::{GetURL,PostURL}() call.

IMPORTANT NOTE: The plugin author must provide an instance to {GetURL,PostURL}() that implements both nsIPluginStreamListener and nsIHTTPHeaderListener. This instance is passed in through {GetURL,PostURL}()'s streamListener parameter. The browser will then QI thi streamListener to see if it implements nsIHTTPHeaderListener.


Member Function Documentation

void nsIHTTPHeaderListener::newResponseHeader ( in string  headerName,
in string  headerValue 
)

Called for each HTTP Response header.

NOTE: You must copy the values of the params.

void nsIHTTPHeaderListener::statusLine ( in string  line  ) 

Called once for the HTTP Response status line.

Value does NOT include a terminating newline. NOTE: You must copy this value.


The documentation for this interface was generated from the following file: