/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


// Autogenerated by hob
window.cls || (window.cls = {});
cls.ResourceManager || (cls.ResourceManager = {});
cls.ResourceManager["1.0"] || (cls.ResourceManager["1.0"] = {});

cls.ResourceManager["1.0"].RequestHeader = function(arr)
{
  this.requestID = arr[0];
  this.resourceID = arr[1];
  this.time = arr[2];
  this.raw = arr[3];
  this.headerList = (arr[4] || []).map(function(item)
  {
    return new cls.ResourceManager["1.0"].Header(item);
  });
  this.toString = function() { return "[message RequestHeader]"; }
};

cls.ResourceManager["1.0"].Header = function(arr)
{
  /**
    * The name of the HTTP header, for instance "Accept-Charset".
    */
  this.name = arr[0];
  /**
    * The value of the HTTP header, for instance "utf-8" when using
    * Accept-Charset, or "text/html; charset=utf8" for Content-Type.
    */
  this.value = arr[1];
};
