39 #include "nsIPropertyBag.idl"
41 interface nsIInputStream;
42 interface nsILocalFile;
43 interface nsIOutputStream;
56 [scriptable,
uuid(79e0d43a-1dd2-11b2-870f-f94d22a28b27)]
76 void start(in
long port);
262 [scriptable,
function,
uuid(925a6d33-9937-4c63-abe1-a1c56a986455)]
277 [scriptable,
uuid(a89de175-ae8e-4c46-91a5-0dba99bbd284)]
323 void add(in
string scheme, in
string host, in
long port);
336 PRBool
remove(in
string scheme, in
string host, in
long port);
345 PRBool
has(in
string scheme, in
string host, in
long port);
355 string getScheme(in
string host, in
long port);
365 void setPrimary(in
string scheme, in
string host, in
long port);
379 [scriptable,
function,
uuid(2bbb4db7-d285-42b3-a3ce-142b8cc7e139)]
411 [scriptable,
uuid(80cbca71-dc51-4fa0-9010-1cec262dbd4a)]
434 readonly attribute
string host;
439 readonly attribute
unsigned long port;
446 readonly attribute
string path;
512 [scriptable,
uuid(1acd16c2-dc59-42fa-9160-4f26c43c1c21)]
537 in
unsigned short statusCode,
538 in
string description);
readonly attribute string primaryHost
void add(in string scheme, in string host, in long port)
void handle(in nsIHttpRequestMetadata metadata, in nsIHttpResponse response)
void registerPathHandler(in string path, in nsIHttpRequestHandler handler)
void setState(in AString path, in AString key, in AString value)
readonly attribute long primaryPort
void setHeader(in string name, in string value, in boolean merge)
void registerErrorHandler(in unsigned long code, in nsIHttpRequestHandler handler)
void setStatusLine(in string httpVersion, in unsigned short statusCode, in string description)
void setObjectState(in AString key, in nsISupports value)
void setPrimary(in string scheme, in string host, in long port)
readonly attribute nsIOutputStream bodyOutputStream
readonly attribute string primaryScheme
PRBool has(in string scheme, in string host, in long port)
void write(in string data)
readonly attribute nsIHttpServerIdentity identity
void setIndexHandler(in nsIHttpRequestHandler handler)
void setSharedState(in AString key, in AString value)
void registerContentType(in string extension, in string type)
void registerDirectory(in string path, in nsILocalFile dir)
void stop(in nsIHttpServerStoppedCallback callback)
AString getState(in AString path, in AString key)
AString getSharedState(in AString key)
string getScheme(in string host, in long port)
void registerPrefixHandler(in string prefix, in nsIHttpRequestHandler handler)
void registerFile(in string path, in nsILocalFile file)
nsISupports getObjectState(in AString key)