dom/plugins/base/nsIHTTPHeaderListener.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/base/nsIHTTPHeaderListener.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +/**
    1.12 + * The nsIHTTPHeaderListener interface allows plugin authors to
    1.13 + * access HTTP Response headers after issuing an
    1.14 + * nsIPluginHost::{GetURL,PostURL}() call. <P>
    1.15 + */
    1.16 +
    1.17 +[scriptable, uuid(ea51e0b8-871c-4b85-92da-6f400394c5ec)]
    1.18 +interface nsIHTTPHeaderListener : nsISupports
    1.19 +{
    1.20 +  /**
    1.21 +   * Called for each HTTP Response header.
    1.22 +   * NOTE: You must copy the values of the params.  
    1.23 +   */
    1.24 +  void newResponseHeader(in string headerName, in string headerValue);
    1.25 +
    1.26 +  /**
    1.27 +   * Called once for the HTTP Response status line.
    1.28 +   * Value does NOT include a terminating newline.
    1.29 +   * NOTE: You must copy this value.
    1.30 +   */
    1.31 +  void statusLine(in string line);
    1.32 +};

mercurial