author Patrick Cloke <>
Thu, 16 Oct 2014 18:05:41 -0400
changeset 20883 56fe4fac57d0916883a373cb7640681631ee0fe0
parent 14767 b0ee9c28b03ad6d2ddbed587d35e931dc6a4958e
child 21099 b1570c0200ffd2826033a1cccbf936d60612bb87
permissions -rw-r--r--
Backout part of 2f79b0b939ed that's unrelated. a=Standard8

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#include "nsISupports.idl"
#include "nsrootidl.idl"


 * An interface that can extract individual headers from a body of headers.
[scriptable, uuid(877af00d-1ce8-446a-b4ce-b7cb1edd2791)]
interface nsIMimeHeaders : nsISupports {
  /// Feed in the text of headers
  void initialize(in ACString allHeaders);

   * Get the text of a header.
   * Leading and trailing whitespace from headers will be stripped from the
   * return value. If getAllOfThem is set to true, then the returned string will
   * have all of the values of the header, in order, joined with the ',\r\n\t'.
   * If the header is not present, then the returned value is NULL.
  ACString extractHeader(in string headerName, in boolean getAllOfThem);

  /// The current text of all header data.
  readonly attribute ACString allHeaders;