mozilla
Your Search Results

    nsIHTTPHeaderListener

    This article is in need of a technical review.

    This interface allows plugin authors to access HTTP Response headers after issuing an nsIPluginHost.GetURL or nsIPluginHost.PostURL call.
    Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

    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 this streamListener to see if it implements nsIHTTPHeaderListener.

     

    Method overview

    void newResponseHeader(in string headerName, in string headerValue);
    void statusLine(in string line);

    Methods

    newResponseHeader()

    Called for each HTTP Response header.

    Note: You must copy the values of the params.

    void newResponseHeader(
      in string headerName,
      in string headerValue
    );
    
    Parameters
    headerName
     
    headerValue
     

    Requires Gecko 1.9 (Firefox 3)

    statusLine()

    Called once for the HTTP Response status line. Value does not include a terminating newline.

    Note: You must copy this value.

    void statusLine(
      in string line
    );
    
    Parameters
    line
     

    Document Tags and Contributors

    Contributors to this page: kscarfone, trevorh, fscholz, Sheppy
    Last updated by: Sheppy,