  init: function(input)  {    // XXX this is incredibly un-RFC2616 in every possible way:    //    // - accepts non-CRLF line endings    // - no real testing for non-US-ASCII text and throwing in that case    // - handles POSTs by displaying the URL and throwing away the request    //   entity    // - need to support RFC 2047-encoded non-US-ASCII characters    // - support absolute URLs (requires telling the server its hostname, beyond    //   just localhost:port and 127.0.0.1:port)    // - etc.    // read the input line by line; the first line either tells us the requested    // path or is empty, in which case the second line contains the path    var lis = new ConverterInputStream(input, "ISO-8859-1", 1024, 0xFFFD);    lis.QueryInterface(Ci.nsIUnicharLineInputStream);    this._parseRequestLine(lis);    if (this.errorCode)      return;    this._parseHeaders(lis);    if (this.errorCode)      return;    // XXX need to put body transmitted with this request into an input stream!    // 19.6.1.1 -- servers MUST report 400 to HTTP/1.1 requests w/o Host header    if (!this._headers.hasHeader("Host") &&        this._httpVersion.equals(nsHttpVersion.HTTP_1_1))    {      this.errorCode = 400;      return;    }    // XXX set this based on Host or the request URI?    this._host = "localhost";  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/13dd7e4db5f5d947d11c692cc50a04dd59fe30c3/httpd.js/buggy/netwerk/test/httpserver/httpd.js