This file is indexed.

/usr/include/firefox/nsIHttpServer.h is in firefox-dev 11.0+build1-0ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/netwerk/test/httpserver/nsIHttpServer.idl
 */

#ifndef __gen_nsIHttpServer_h__
#define __gen_nsIHttpServer_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIInputStream; /* forward declaration */

class nsILocalFile; /* forward declaration */

class nsIOutputStream; /* forward declaration */

class nsISimpleEnumerator; /* forward declaration */

class nsIHttpServer; /* forward declaration */

class nsIHttpServerStoppedCallback; /* forward declaration */

class nsIHttpRequestHandler; /* forward declaration */

class nsIHttpRequest; /* forward declaration */

class nsIHttpResponse; /* forward declaration */

class nsIHttpServerIdentity; /* forward declaration */


/* starting interface:    nsIHttpServer */
#define NS_IHTTPSERVER_IID_STR "71ecfba5-15cf-457f-9642-4b33f6e9baf4"

#define NS_IHTTPSERVER_IID \
  {0x71ecfba5, 0x15cf, 0x457f, \
    { 0x96, 0x42, 0x4b, 0x33, 0xf6, 0xe9, 0xba, 0xf4 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpServer : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPSERVER_IID)

  /* void start (in long port); */
  NS_SCRIPTABLE NS_IMETHOD Start(PRInt32 port) = 0;

  /* void stop (in nsIHttpServerStoppedCallback callback); */
  NS_SCRIPTABLE NS_IMETHOD Stop(nsIHttpServerStoppedCallback *callback) = 0;

  /* void registerFile (in string path, in nsILocalFile file); */
  NS_SCRIPTABLE NS_IMETHOD RegisterFile(const char * path, nsILocalFile *file) = 0;

  /* void registerPathHandler (in string path, in nsIHttpRequestHandler handler); */
  NS_SCRIPTABLE NS_IMETHOD RegisterPathHandler(const char * path, nsIHttpRequestHandler *handler) = 0;

  /* void registerErrorHandler (in unsigned long code, in nsIHttpRequestHandler handler); */
  NS_SCRIPTABLE NS_IMETHOD RegisterErrorHandler(PRUint32 code, nsIHttpRequestHandler *handler) = 0;

  /* void registerDirectory (in string path, in nsILocalFile dir); */
  NS_SCRIPTABLE NS_IMETHOD RegisterDirectory(const char * path, nsILocalFile *dir) = 0;

  /* void registerContentType (in string extension, in string type); */
  NS_SCRIPTABLE NS_IMETHOD RegisterContentType(const char * extension, const char * type) = 0;

  /* void setIndexHandler (in nsIHttpRequestHandler handler); */
  NS_SCRIPTABLE NS_IMETHOD SetIndexHandler(nsIHttpRequestHandler *handler) = 0;

  /* readonly attribute nsIHttpServerIdentity identity; */
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIHttpServerIdentity * *aIdentity) = 0;

  /* AString getState (in AString path, in AString key); */
  NS_SCRIPTABLE NS_IMETHOD GetState(const nsAString & path, const nsAString & key, nsAString & _retval NS_OUTPARAM) = 0;

  /* void setState (in AString path, in AString key, in AString value); */
  NS_SCRIPTABLE NS_IMETHOD SetState(const nsAString & path, const nsAString & key, const nsAString & value) = 0;

  /* AString getSharedState (in AString key); */
  NS_SCRIPTABLE NS_IMETHOD GetSharedState(const nsAString & key, nsAString & _retval NS_OUTPARAM) = 0;

  /* void setSharedState (in AString key, in AString value); */
  NS_SCRIPTABLE NS_IMETHOD SetSharedState(const nsAString & key, const nsAString & value) = 0;

  /* nsISupports getObjectState (in AString key); */
  NS_SCRIPTABLE NS_IMETHOD GetObjectState(const nsAString & key, nsISupports * *_retval NS_OUTPARAM) = 0;

  /* void setObjectState (in AString key, in nsISupports value); */
  NS_SCRIPTABLE NS_IMETHOD SetObjectState(const nsAString & key, nsISupports *value) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpServer, NS_IHTTPSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPSERVER \
  NS_SCRIPTABLE NS_IMETHOD Start(PRInt32 port); \
  NS_SCRIPTABLE NS_IMETHOD Stop(nsIHttpServerStoppedCallback *callback); \
  NS_SCRIPTABLE NS_IMETHOD RegisterFile(const char * path, nsILocalFile *file); \
  NS_SCRIPTABLE NS_IMETHOD RegisterPathHandler(const char * path, nsIHttpRequestHandler *handler); \
  NS_SCRIPTABLE NS_IMETHOD RegisterErrorHandler(PRUint32 code, nsIHttpRequestHandler *handler); \
  NS_SCRIPTABLE NS_IMETHOD RegisterDirectory(const char * path, nsILocalFile *dir); \
  NS_SCRIPTABLE NS_IMETHOD RegisterContentType(const char * extension, const char * type); \
  NS_SCRIPTABLE NS_IMETHOD SetIndexHandler(nsIHttpRequestHandler *handler); \
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIHttpServerIdentity * *aIdentity); \
  NS_SCRIPTABLE NS_IMETHOD GetState(const nsAString & path, const nsAString & key, nsAString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetState(const nsAString & path, const nsAString & key, const nsAString & value); \
  NS_SCRIPTABLE NS_IMETHOD GetSharedState(const nsAString & key, nsAString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetSharedState(const nsAString & key, const nsAString & value); \
  NS_SCRIPTABLE NS_IMETHOD GetObjectState(const nsAString & key, nsISupports * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetObjectState(const nsAString & key, nsISupports *value); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPSERVER(_to) \
  NS_SCRIPTABLE NS_IMETHOD Start(PRInt32 port) { return _to Start(port); } \
  NS_SCRIPTABLE NS_IMETHOD Stop(nsIHttpServerStoppedCallback *callback) { return _to Stop(callback); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterFile(const char * path, nsILocalFile *file) { return _to RegisterFile(path, file); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterPathHandler(const char * path, nsIHttpRequestHandler *handler) { return _to RegisterPathHandler(path, handler); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterErrorHandler(PRUint32 code, nsIHttpRequestHandler *handler) { return _to RegisterErrorHandler(code, handler); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterDirectory(const char * path, nsILocalFile *dir) { return _to RegisterDirectory(path, dir); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterContentType(const char * extension, const char * type) { return _to RegisterContentType(extension, type); } \
  NS_SCRIPTABLE NS_IMETHOD SetIndexHandler(nsIHttpRequestHandler *handler) { return _to SetIndexHandler(handler); } \
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIHttpServerIdentity * *aIdentity) { return _to GetIdentity(aIdentity); } \
  NS_SCRIPTABLE NS_IMETHOD GetState(const nsAString & path, const nsAString & key, nsAString & _retval NS_OUTPARAM) { return _to GetState(path, key, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetState(const nsAString & path, const nsAString & key, const nsAString & value) { return _to SetState(path, key, value); } \
  NS_SCRIPTABLE NS_IMETHOD GetSharedState(const nsAString & key, nsAString & _retval NS_OUTPARAM) { return _to GetSharedState(key, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetSharedState(const nsAString & key, const nsAString & value) { return _to SetSharedState(key, value); } \
  NS_SCRIPTABLE NS_IMETHOD GetObjectState(const nsAString & key, nsISupports * *_retval NS_OUTPARAM) { return _to GetObjectState(key, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetObjectState(const nsAString & key, nsISupports *value) { return _to SetObjectState(key, value); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPSERVER(_to) \
  NS_SCRIPTABLE NS_IMETHOD Start(PRInt32 port) { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(port); } \
  NS_SCRIPTABLE NS_IMETHOD Stop(nsIHttpServerStoppedCallback *callback) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(callback); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterFile(const char * path, nsILocalFile *file) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterFile(path, file); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterPathHandler(const char * path, nsIHttpRequestHandler *handler) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterPathHandler(path, handler); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterErrorHandler(PRUint32 code, nsIHttpRequestHandler *handler) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterErrorHandler(code, handler); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterDirectory(const char * path, nsILocalFile *dir) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterDirectory(path, dir); } \
  NS_SCRIPTABLE NS_IMETHOD RegisterContentType(const char * extension, const char * type) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterContentType(extension, type); } \
  NS_SCRIPTABLE NS_IMETHOD SetIndexHandler(nsIHttpRequestHandler *handler) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIndexHandler(handler); } \
  NS_SCRIPTABLE NS_IMETHOD GetIdentity(nsIHttpServerIdentity * *aIdentity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(aIdentity); } \
  NS_SCRIPTABLE NS_IMETHOD GetState(const nsAString & path, const nsAString & key, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(path, key, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetState(const nsAString & path, const nsAString & key, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetState(path, key, value); } \
  NS_SCRIPTABLE NS_IMETHOD GetSharedState(const nsAString & key, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharedState(key, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetSharedState(const nsAString & key, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSharedState(key, value); } \
  NS_SCRIPTABLE NS_IMETHOD GetObjectState(const nsAString & key, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjectState(key, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetObjectState(const nsAString & key, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetObjectState(key, value); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsHttpServer : public nsIHttpServer
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPSERVER

  nsHttpServer();

private:
  ~nsHttpServer();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHttpServer, nsIHttpServer)

nsHttpServer::nsHttpServer()
{
  /* member initializers and constructor code */
}

nsHttpServer::~nsHttpServer()
{
  /* destructor code */
}

/* void start (in long port); */
NS_IMETHODIMP nsHttpServer::Start(PRInt32 port)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void stop (in nsIHttpServerStoppedCallback callback); */
NS_IMETHODIMP nsHttpServer::Stop(nsIHttpServerStoppedCallback *callback)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerFile (in string path, in nsILocalFile file); */
NS_IMETHODIMP nsHttpServer::RegisterFile(const char * path, nsILocalFile *file)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerPathHandler (in string path, in nsIHttpRequestHandler handler); */
NS_IMETHODIMP nsHttpServer::RegisterPathHandler(const char * path, nsIHttpRequestHandler *handler)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerErrorHandler (in unsigned long code, in nsIHttpRequestHandler handler); */
NS_IMETHODIMP nsHttpServer::RegisterErrorHandler(PRUint32 code, nsIHttpRequestHandler *handler)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerDirectory (in string path, in nsILocalFile dir); */
NS_IMETHODIMP nsHttpServer::RegisterDirectory(const char * path, nsILocalFile *dir)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void registerContentType (in string extension, in string type); */
NS_IMETHODIMP nsHttpServer::RegisterContentType(const char * extension, const char * type)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setIndexHandler (in nsIHttpRequestHandler handler); */
NS_IMETHODIMP nsHttpServer::SetIndexHandler(nsIHttpRequestHandler *handler)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIHttpServerIdentity identity; */
NS_IMETHODIMP nsHttpServer::GetIdentity(nsIHttpServerIdentity * *aIdentity)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getState (in AString path, in AString key); */
NS_IMETHODIMP nsHttpServer::GetState(const nsAString & path, const nsAString & key, nsAString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setState (in AString path, in AString key, in AString value); */
NS_IMETHODIMP nsHttpServer::SetState(const nsAString & path, const nsAString & key, const nsAString & value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getSharedState (in AString key); */
NS_IMETHODIMP nsHttpServer::GetSharedState(const nsAString & key, nsAString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setSharedState (in AString key, in AString value); */
NS_IMETHODIMP nsHttpServer::SetSharedState(const nsAString & key, const nsAString & value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISupports getObjectState (in AString key); */
NS_IMETHODIMP nsHttpServer::GetObjectState(const nsAString & key, nsISupports * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setObjectState (in AString key, in nsISupports value); */
NS_IMETHODIMP nsHttpServer::SetObjectState(const nsAString & key, nsISupports *value)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIHttpServerStoppedCallback */
#define NS_IHTTPSERVERSTOPPEDCALLBACK_IID_STR "925a6d33-9937-4c63-abe1-a1c56a986455"

#define NS_IHTTPSERVERSTOPPEDCALLBACK_IID \
  {0x925a6d33, 0x9937, 0x4c63, \
    { 0xab, 0xe1, 0xa1, 0xc5, 0x6a, 0x98, 0x64, 0x55 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpServerStoppedCallback : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPSERVERSTOPPEDCALLBACK_IID)

  /* void onStopped (); */
  NS_SCRIPTABLE NS_IMETHOD OnStopped(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpServerStoppedCallback, NS_IHTTPSERVERSTOPPEDCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPSERVERSTOPPEDCALLBACK \
  NS_SCRIPTABLE NS_IMETHOD OnStopped(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPSERVERSTOPPEDCALLBACK(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnStopped(void) { return _to OnStopped(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPSERVERSTOPPEDCALLBACK(_to) \
  NS_SCRIPTABLE NS_IMETHOD OnStopped(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopped(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsHttpServerStoppedCallback : public nsIHttpServerStoppedCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPSERVERSTOPPEDCALLBACK

  nsHttpServerStoppedCallback();

private:
  ~nsHttpServerStoppedCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHttpServerStoppedCallback, nsIHttpServerStoppedCallback)

nsHttpServerStoppedCallback::nsHttpServerStoppedCallback()
{
  /* member initializers and constructor code */
}

nsHttpServerStoppedCallback::~nsHttpServerStoppedCallback()
{
  /* destructor code */
}

/* void onStopped (); */
NS_IMETHODIMP nsHttpServerStoppedCallback::OnStopped()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIHttpServerIdentity */
#define NS_IHTTPSERVERIDENTITY_IID_STR "a89de175-ae8e-4c46-91a5-0dba99bbd284"

#define NS_IHTTPSERVERIDENTITY_IID \
  {0xa89de175, 0xae8e, 0x4c46, \
    { 0x91, 0xa5, 0x0d, 0xba, 0x99, 0xbb, 0xd2, 0x84 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpServerIdentity : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPSERVERIDENTITY_IID)

  /* readonly attribute string primaryScheme; */
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScheme(char * *aPrimaryScheme) = 0;

  /* readonly attribute string primaryHost; */
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryHost(char * *aPrimaryHost) = 0;

  /* readonly attribute long primaryPort; */
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryPort(PRInt32 *aPrimaryPort) = 0;

  /* void add (in string scheme, in string host, in long port); */
  NS_SCRIPTABLE NS_IMETHOD Add(const char * scheme, const char * host, PRInt32 port) = 0;

  /* boolean remove (in string scheme, in string host, in long port); */
  NS_SCRIPTABLE NS_IMETHOD Remove(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM) = 0;

  /* boolean has (in string scheme, in string host, in long port); */
  NS_SCRIPTABLE NS_IMETHOD Has(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM) = 0;

  /* string getScheme (in string host, in long port); */
  NS_SCRIPTABLE NS_IMETHOD GetScheme(const char * host, PRInt32 port, char * *_retval NS_OUTPARAM) = 0;

  /* void setPrimary (in string scheme, in string host, in long port); */
  NS_SCRIPTABLE NS_IMETHOD SetPrimary(const char * scheme, const char * host, PRInt32 port) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpServerIdentity, NS_IHTTPSERVERIDENTITY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPSERVERIDENTITY \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScheme(char * *aPrimaryScheme); \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryHost(char * *aPrimaryHost); \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryPort(PRInt32 *aPrimaryPort); \
  NS_SCRIPTABLE NS_IMETHOD Add(const char * scheme, const char * host, PRInt32 port); \
  NS_SCRIPTABLE NS_IMETHOD Remove(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Has(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetScheme(const char * host, PRInt32 port, char * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetPrimary(const char * scheme, const char * host, PRInt32 port); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPSERVERIDENTITY(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScheme(char * *aPrimaryScheme) { return _to GetPrimaryScheme(aPrimaryScheme); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryHost(char * *aPrimaryHost) { return _to GetPrimaryHost(aPrimaryHost); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryPort(PRInt32 *aPrimaryPort) { return _to GetPrimaryPort(aPrimaryPort); } \
  NS_SCRIPTABLE NS_IMETHOD Add(const char * scheme, const char * host, PRInt32 port) { return _to Add(scheme, host, port); } \
  NS_SCRIPTABLE NS_IMETHOD Remove(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM) { return _to Remove(scheme, host, port, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM) { return _to Has(scheme, host, port, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetScheme(const char * host, PRInt32 port, char * *_retval NS_OUTPARAM) { return _to GetScheme(host, port, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetPrimary(const char * scheme, const char * host, PRInt32 port) { return _to SetPrimary(scheme, host, port); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPSERVERIDENTITY(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryScheme(char * *aPrimaryScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryScheme(aPrimaryScheme); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryHost(char * *aPrimaryHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryHost(aPrimaryHost); } \
  NS_SCRIPTABLE NS_IMETHOD GetPrimaryPort(PRInt32 *aPrimaryPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryPort(aPrimaryPort); } \
  NS_SCRIPTABLE NS_IMETHOD Add(const char * scheme, const char * host, PRInt32 port) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(scheme, host, port); } \
  NS_SCRIPTABLE NS_IMETHOD Remove(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Remove(scheme, host, port, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Has(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Has(scheme, host, port, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetScheme(const char * host, PRInt32 port, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScheme(host, port, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetPrimary(const char * scheme, const char * host, PRInt32 port) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrimary(scheme, host, port); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsHttpServerIdentity : public nsIHttpServerIdentity
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPSERVERIDENTITY

  nsHttpServerIdentity();

private:
  ~nsHttpServerIdentity();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHttpServerIdentity, nsIHttpServerIdentity)

nsHttpServerIdentity::nsHttpServerIdentity()
{
  /* member initializers and constructor code */
}

nsHttpServerIdentity::~nsHttpServerIdentity()
{
  /* destructor code */
}

/* readonly attribute string primaryScheme; */
NS_IMETHODIMP nsHttpServerIdentity::GetPrimaryScheme(char * *aPrimaryScheme)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string primaryHost; */
NS_IMETHODIMP nsHttpServerIdentity::GetPrimaryHost(char * *aPrimaryHost)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long primaryPort; */
NS_IMETHODIMP nsHttpServerIdentity::GetPrimaryPort(PRInt32 *aPrimaryPort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void add (in string scheme, in string host, in long port); */
NS_IMETHODIMP nsHttpServerIdentity::Add(const char * scheme, const char * host, PRInt32 port)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean remove (in string scheme, in string host, in long port); */
NS_IMETHODIMP nsHttpServerIdentity::Remove(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean has (in string scheme, in string host, in long port); */
NS_IMETHODIMP nsHttpServerIdentity::Has(const char * scheme, const char * host, PRInt32 port, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string getScheme (in string host, in long port); */
NS_IMETHODIMP nsHttpServerIdentity::GetScheme(const char * host, PRInt32 port, char * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPrimary (in string scheme, in string host, in long port); */
NS_IMETHODIMP nsHttpServerIdentity::SetPrimary(const char * scheme, const char * host, PRInt32 port)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIHttpRequestHandler */
#define NS_IHTTPREQUESTHANDLER_IID_STR "2bbb4db7-d285-42b3-a3ce-142b8cc7e139"

#define NS_IHTTPREQUESTHANDLER_IID \
  {0x2bbb4db7, 0xd285, 0x42b3, \
    { 0xa3, 0xce, 0x14, 0x2b, 0x8c, 0xc7, 0xe1, 0x39 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpRequestHandler : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPREQUESTHANDLER_IID)

  /* void handle (in nsIHttpRequest request, in nsIHttpResponse response); */
  NS_SCRIPTABLE NS_IMETHOD Handle(nsIHttpRequest *request, nsIHttpResponse *response) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpRequestHandler, NS_IHTTPREQUESTHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPREQUESTHANDLER \
  NS_SCRIPTABLE NS_IMETHOD Handle(nsIHttpRequest *request, nsIHttpResponse *response); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPREQUESTHANDLER(_to) \
  NS_SCRIPTABLE NS_IMETHOD Handle(nsIHttpRequest *request, nsIHttpResponse *response) { return _to Handle(request, response); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPREQUESTHANDLER(_to) \
  NS_SCRIPTABLE NS_IMETHOD Handle(nsIHttpRequest *request, nsIHttpResponse *response) { return !_to ? NS_ERROR_NULL_POINTER : _to->Handle(request, response); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsHttpRequestHandler : public nsIHttpRequestHandler
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPREQUESTHANDLER

  nsHttpRequestHandler();

private:
  ~nsHttpRequestHandler();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHttpRequestHandler, nsIHttpRequestHandler)

nsHttpRequestHandler::nsHttpRequestHandler()
{
  /* member initializers and constructor code */
}

nsHttpRequestHandler::~nsHttpRequestHandler()
{
  /* destructor code */
}

/* void handle (in nsIHttpRequest request, in nsIHttpResponse response); */
NS_IMETHODIMP nsHttpRequestHandler::Handle(nsIHttpRequest *request, nsIHttpResponse *response)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIHttpRequest */
#define NS_IHTTPREQUEST_IID_STR "978cf30e-ad73-42ee-8f22-fe0aaf1bf5d2"

#define NS_IHTTPREQUEST_IID \
  {0x978cf30e, 0xad73, 0x42ee, \
    { 0x8f, 0x22, 0xfe, 0x0a, 0xaf, 0x1b, 0xf5, 0xd2 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpRequest : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPREQUEST_IID)

  /* readonly attribute string method; */
  NS_SCRIPTABLE NS_IMETHOD GetMethod(char * *aMethod) = 0;

  /* readonly attribute string scheme; */
  NS_SCRIPTABLE NS_IMETHOD GetScheme(char * *aScheme) = 0;

  /* readonly attribute string host; */
  NS_SCRIPTABLE NS_IMETHOD GetHost(char * *aHost) = 0;

  /* readonly attribute unsigned long port; */
  NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint32 *aPort) = 0;

  /* readonly attribute string path; */
  NS_SCRIPTABLE NS_IMETHOD GetPath(char * *aPath) = 0;

  /* readonly attribute string queryString; */
  NS_SCRIPTABLE NS_IMETHOD GetQueryString(char * *aQueryString) = 0;

  /* readonly attribute string httpVersion; */
  NS_SCRIPTABLE NS_IMETHOD GetHttpVersion(char * *aHttpVersion) = 0;

  /* string getHeader (in string fieldName); */
  NS_SCRIPTABLE NS_IMETHOD GetHeader(const char * fieldName, char * *_retval NS_OUTPARAM) = 0;

  /* boolean hasHeader (in string fieldName); */
  NS_SCRIPTABLE NS_IMETHOD HasHeader(const char * fieldName, bool *_retval NS_OUTPARAM) = 0;

  /* readonly attribute nsISimpleEnumerator headers; */
  NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsISimpleEnumerator * *aHeaders) = 0;

  /* readonly attribute nsIInputStream bodyInputStream; */
  NS_SCRIPTABLE NS_IMETHOD GetBodyInputStream(nsIInputStream * *aBodyInputStream) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpRequest, NS_IHTTPREQUEST_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPREQUEST \
  NS_SCRIPTABLE NS_IMETHOD GetMethod(char * *aMethod); \
  NS_SCRIPTABLE NS_IMETHOD GetScheme(char * *aScheme); \
  NS_SCRIPTABLE NS_IMETHOD GetHost(char * *aHost); \
  NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint32 *aPort); \
  NS_SCRIPTABLE NS_IMETHOD GetPath(char * *aPath); \
  NS_SCRIPTABLE NS_IMETHOD GetQueryString(char * *aQueryString); \
  NS_SCRIPTABLE NS_IMETHOD GetHttpVersion(char * *aHttpVersion); \
  NS_SCRIPTABLE NS_IMETHOD GetHeader(const char * fieldName, char * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD HasHeader(const char * fieldName, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsISimpleEnumerator * *aHeaders); \
  NS_SCRIPTABLE NS_IMETHOD GetBodyInputStream(nsIInputStream * *aBodyInputStream); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPREQUEST(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetMethod(char * *aMethod) { return _to GetMethod(aMethod); } \
  NS_SCRIPTABLE NS_IMETHOD GetScheme(char * *aScheme) { return _to GetScheme(aScheme); } \
  NS_SCRIPTABLE NS_IMETHOD GetHost(char * *aHost) { return _to GetHost(aHost); } \
  NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint32 *aPort) { return _to GetPort(aPort); } \
  NS_SCRIPTABLE NS_IMETHOD GetPath(char * *aPath) { return _to GetPath(aPath); } \
  NS_SCRIPTABLE NS_IMETHOD GetQueryString(char * *aQueryString) { return _to GetQueryString(aQueryString); } \
  NS_SCRIPTABLE NS_IMETHOD GetHttpVersion(char * *aHttpVersion) { return _to GetHttpVersion(aHttpVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetHeader(const char * fieldName, char * *_retval NS_OUTPARAM) { return _to GetHeader(fieldName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD HasHeader(const char * fieldName, bool *_retval NS_OUTPARAM) { return _to HasHeader(fieldName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsISimpleEnumerator * *aHeaders) { return _to GetHeaders(aHeaders); } \
  NS_SCRIPTABLE NS_IMETHOD GetBodyInputStream(nsIInputStream * *aBodyInputStream) { return _to GetBodyInputStream(aBodyInputStream); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPREQUEST(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetMethod(char * *aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethod(aMethod); } \
  NS_SCRIPTABLE NS_IMETHOD GetScheme(char * *aScheme) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScheme(aScheme); } \
  NS_SCRIPTABLE NS_IMETHOD GetHost(char * *aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
  NS_SCRIPTABLE NS_IMETHOD GetPort(PRUint32 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
  NS_SCRIPTABLE NS_IMETHOD GetPath(char * *aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
  NS_SCRIPTABLE NS_IMETHOD GetQueryString(char * *aQueryString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueryString(aQueryString); } \
  NS_SCRIPTABLE NS_IMETHOD GetHttpVersion(char * *aHttpVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHttpVersion(aHttpVersion); } \
  NS_SCRIPTABLE NS_IMETHOD GetHeader(const char * fieldName, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeader(fieldName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD HasHeader(const char * fieldName, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasHeader(fieldName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetHeaders(nsISimpleEnumerator * *aHeaders) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaders(aHeaders); } \
  NS_SCRIPTABLE NS_IMETHOD GetBodyInputStream(nsIInputStream * *aBodyInputStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBodyInputStream(aBodyInputStream); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsHttpRequest : public nsIHttpRequest
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPREQUEST

  nsHttpRequest();

private:
  ~nsHttpRequest();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHttpRequest, nsIHttpRequest)

nsHttpRequest::nsHttpRequest()
{
  /* member initializers and constructor code */
}

nsHttpRequest::~nsHttpRequest()
{
  /* destructor code */
}

/* readonly attribute string method; */
NS_IMETHODIMP nsHttpRequest::GetMethod(char * *aMethod)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string scheme; */
NS_IMETHODIMP nsHttpRequest::GetScheme(char * *aScheme)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string host; */
NS_IMETHODIMP nsHttpRequest::GetHost(char * *aHost)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long port; */
NS_IMETHODIMP nsHttpRequest::GetPort(PRUint32 *aPort)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string path; */
NS_IMETHODIMP nsHttpRequest::GetPath(char * *aPath)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string queryString; */
NS_IMETHODIMP nsHttpRequest::GetQueryString(char * *aQueryString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute string httpVersion; */
NS_IMETHODIMP nsHttpRequest::GetHttpVersion(char * *aHttpVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string getHeader (in string fieldName); */
NS_IMETHODIMP nsHttpRequest::GetHeader(const char * fieldName, char * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean hasHeader (in string fieldName); */
NS_IMETHODIMP nsHttpRequest::HasHeader(const char * fieldName, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator headers; */
NS_IMETHODIMP nsHttpRequest::GetHeaders(nsISimpleEnumerator * *aHeaders)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIInputStream bodyInputStream; */
NS_IMETHODIMP nsHttpRequest::GetBodyInputStream(nsIInputStream * *aBodyInputStream)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIHttpResponse */
#define NS_IHTTPRESPONSE_IID_STR "1acd16c2-dc59-42fa-9160-4f26c43c1c21"

#define NS_IHTTPRESPONSE_IID \
  {0x1acd16c2, 0xdc59, 0x42fa, \
    { 0x91, 0x60, 0x4f, 0x26, 0xc4, 0x3c, 0x1c, 0x21 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpResponse : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPRESPONSE_IID)

  /* void setStatusLine (in string httpVersion, in unsigned short statusCode, in string description); */
  NS_SCRIPTABLE NS_IMETHOD SetStatusLine(const char * httpVersion, PRUint16 statusCode, const char * description) = 0;

  /* void setHeader (in string name, in string value, in boolean merge); */
  NS_SCRIPTABLE NS_IMETHOD SetHeader(const char * name, const char * value, bool merge) = 0;

  /* readonly attribute nsIOutputStream bodyOutputStream; */
  NS_SCRIPTABLE NS_IMETHOD GetBodyOutputStream(nsIOutputStream * *aBodyOutputStream) = 0;

  /* void write (in string data); */
  NS_SCRIPTABLE NS_IMETHOD Write(const char * data) = 0;

  /* void processAsync (); */
  NS_SCRIPTABLE NS_IMETHOD ProcessAsync(void) = 0;

  /* void seizePower (); */
  NS_SCRIPTABLE NS_IMETHOD SeizePower(void) = 0;

  /* void finish (); */
  NS_SCRIPTABLE NS_IMETHOD Finish(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpResponse, NS_IHTTPRESPONSE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIHTTPRESPONSE \
  NS_SCRIPTABLE NS_IMETHOD SetStatusLine(const char * httpVersion, PRUint16 statusCode, const char * description); \
  NS_SCRIPTABLE NS_IMETHOD SetHeader(const char * name, const char * value, bool merge); \
  NS_SCRIPTABLE NS_IMETHOD GetBodyOutputStream(nsIOutputStream * *aBodyOutputStream); \
  NS_SCRIPTABLE NS_IMETHOD Write(const char * data); \
  NS_SCRIPTABLE NS_IMETHOD ProcessAsync(void); \
  NS_SCRIPTABLE NS_IMETHOD SeizePower(void); \
  NS_SCRIPTABLE NS_IMETHOD Finish(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIHTTPRESPONSE(_to) \
  NS_SCRIPTABLE NS_IMETHOD SetStatusLine(const char * httpVersion, PRUint16 statusCode, const char * description) { return _to SetStatusLine(httpVersion, statusCode, description); } \
  NS_SCRIPTABLE NS_IMETHOD SetHeader(const char * name, const char * value, bool merge) { return _to SetHeader(name, value, merge); } \
  NS_SCRIPTABLE NS_IMETHOD GetBodyOutputStream(nsIOutputStream * *aBodyOutputStream) { return _to GetBodyOutputStream(aBodyOutputStream); } \
  NS_SCRIPTABLE NS_IMETHOD Write(const char * data) { return _to Write(data); } \
  NS_SCRIPTABLE NS_IMETHOD ProcessAsync(void) { return _to ProcessAsync(); } \
  NS_SCRIPTABLE NS_IMETHOD SeizePower(void) { return _to SeizePower(); } \
  NS_SCRIPTABLE NS_IMETHOD Finish(void) { return _to Finish(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIHTTPRESPONSE(_to) \
  NS_SCRIPTABLE NS_IMETHOD SetStatusLine(const char * httpVersion, PRUint16 statusCode, const char * description) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusLine(httpVersion, statusCode, description); } \
  NS_SCRIPTABLE NS_IMETHOD SetHeader(const char * name, const char * value, bool merge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeader(name, value, merge); } \
  NS_SCRIPTABLE NS_IMETHOD GetBodyOutputStream(nsIOutputStream * *aBodyOutputStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBodyOutputStream(aBodyOutputStream); } \
  NS_SCRIPTABLE NS_IMETHOD Write(const char * data) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(data); } \
  NS_SCRIPTABLE NS_IMETHOD ProcessAsync(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessAsync(); } \
  NS_SCRIPTABLE NS_IMETHOD SeizePower(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SeizePower(); } \
  NS_SCRIPTABLE NS_IMETHOD Finish(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsHttpResponse : public nsIHttpResponse
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIHTTPRESPONSE

  nsHttpResponse();

private:
  ~nsHttpResponse();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsHttpResponse, nsIHttpResponse)

nsHttpResponse::nsHttpResponse()
{
  /* member initializers and constructor code */
}

nsHttpResponse::~nsHttpResponse()
{
  /* destructor code */
}

/* void setStatusLine (in string httpVersion, in unsigned short statusCode, in string description); */
NS_IMETHODIMP nsHttpResponse::SetStatusLine(const char * httpVersion, PRUint16 statusCode, const char * description)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setHeader (in string name, in string value, in boolean merge); */
NS_IMETHODIMP nsHttpResponse::SetHeader(const char * name, const char * value, bool merge)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIOutputStream bodyOutputStream; */
NS_IMETHODIMP nsHttpResponse::GetBodyOutputStream(nsIOutputStream * *aBodyOutputStream)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void write (in string data); */
NS_IMETHODIMP nsHttpResponse::Write(const char * data)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void processAsync (); */
NS_IMETHODIMP nsHttpResponse::ProcessAsync()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void seizePower (); */
NS_IMETHODIMP nsHttpResponse::SeizePower()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void finish (); */
NS_IMETHODIMP nsHttpResponse::Finish()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIHttpServer_h__ */