PageRenderTime 46ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/gecko_api/include/nsIHttpChannel.h

http://firefox-mac-pdf.googlecode.com/
C Header | 506 lines | 193 code | 55 blank | 258 comment | 0 complexity | cd725aa9e76f793ab8f920c8079a8dc2 MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/netwerk/protocol/http/public/nsIHttpChannel.idl
  3. */
  4. #ifndef __gen_nsIHttpChannel_h__
  5. #define __gen_nsIHttpChannel_h__
  6. #ifndef __gen_nsIChannel_h__
  7. #include "nsIChannel.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. class nsIHttpHeaderVisitor; /* forward declaration */
  14. /* starting interface: nsIHttpChannel */
  15. #define NS_IHTTPCHANNEL_IID_STR "9277fe09-f0cc-4cd9-bbce-581dd94b0260"
  16. #define NS_IHTTPCHANNEL_IID \
  17. {0x9277fe09, 0xf0cc, 0x4cd9, \
  18. { 0xbb, 0xce, 0x58, 0x1d, 0xd9, 0x4b, 0x02, 0x60 }}
  19. /**
  20. * nsIHttpChannel
  21. *
  22. * This interface allows for the modification of HTTP request parameters and
  23. * the inspection of the resulting HTTP response status and headers when they
  24. * become available.
  25. *
  26. * @status FROZEN
  27. */
  28. class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpChannel : public nsIChannel {
  29. public:
  30. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNEL_IID)
  31. /**************************************************************************
  32. * REQUEST CONFIGURATION
  33. *
  34. * Modifying request parameters after asyncOpen has been called is an error.
  35. */
  36. /**
  37. * Set/get the HTTP request method (default is "GET"). Setter is case
  38. * insensitive; getter returns an uppercase string.
  39. *
  40. * This attribute may only be set before the channel is opened.
  41. *
  42. * NOTE: The data for a "POST" or "PUT" request can be configured via
  43. * nsIUploadChannel; however, after setting the upload data, it may be
  44. * necessary to set the request method explicitly. The documentation
  45. * for nsIUploadChannel has further details.
  46. *
  47. * @throws NS_ERROR_IN_PROGRESS if set after the channel has been opened.
  48. */
  49. /* attribute ACString requestMethod; */
  50. NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) = 0;
  51. NS_SCRIPTABLE NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) = 0;
  52. /**
  53. * Get/set the HTTP referrer URI. This is the address (URI) of the
  54. * resource from which this channel's URI was obtained (see RFC2616 section
  55. * 14.36).
  56. *
  57. * This attribute may only be set before the channel is opened.
  58. *
  59. * NOTE: The channel may silently refuse to set the Referer header if the
  60. * URI does not pass certain security checks (e.g., a "https://" URL will
  61. * never be sent as the referrer for a plaintext HTTP request). The
  62. * implementation is not required to throw an exception when the referrer
  63. * URI is rejected.
  64. *
  65. * @throws NS_ERROR_IN_PROGRESS if set after the channel has been opened.
  66. */
  67. /* attribute nsIURI referrer; */
  68. NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) = 0;
  69. NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI * aReferrer) = 0;
  70. /**
  71. * Get the value of a particular request header.
  72. *
  73. * @param aHeader
  74. * The case-insensitive name of the request header to query (e.g.,
  75. * "Cache-Control").
  76. *
  77. * @return the value of the request header.
  78. * @throws NS_ERROR_NOT_AVAILABLE if the header is not set.
  79. */
  80. /* ACString getRequestHeader (in ACString aHeader); */
  81. NS_SCRIPTABLE NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval) = 0;
  82. /**
  83. * Set the value of a particular request header.
  84. *
  85. * This method allows, for example, the cookies module to add "Cookie"
  86. * headers to the outgoing HTTP request.
  87. *
  88. * This method may only be called before the channel is opened.
  89. *
  90. * @param aHeader
  91. * The case-insensitive name of the request header to set (e.g.,
  92. * "Cookie").
  93. * @param aValue
  94. * The request header value to set (e.g., "X=1").
  95. * @param aMerge
  96. * If true, the new header value will be merged with any existing
  97. * values for the specified header. This flag is ignored if the
  98. * specified header does not support merging (e.g., the "Content-
  99. * Type" header can only have one value). The list of headers for
  100. * which this flag is ignored is an implementation detail. If this
  101. * flag is false, then the header value will be replaced with the
  102. * contents of |aValue|.
  103. *
  104. * If aValue is empty and aMerge is false, the header will be cleared.
  105. *
  106. * @throws NS_ERROR_IN_PROGRESS if called after the channel has been
  107. * opened.
  108. */
  109. /* void setRequestHeader (in ACString aHeader, in ACString aValue, in boolean aMerge); */
  110. NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge) = 0;
  111. /**
  112. * Call this method to visit all request headers. Calling setRequestHeader
  113. * while visiting request headers has undefined behavior. Don't do it!
  114. *
  115. * @param aVisitor
  116. * the header visitor instance.
  117. */
  118. /* void visitRequestHeaders (in nsIHttpHeaderVisitor aVisitor); */
  119. NS_SCRIPTABLE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) = 0;
  120. /**
  121. * This attribute is a hint to the channel to indicate whether or not
  122. * the underlying HTTP transaction should be allowed to be pipelined
  123. * with other transactions. This should be set to FALSE, for example,
  124. * if the application knows that the corresponding document is likely
  125. * to be very large.
  126. *
  127. * This attribute is true by default, though other factors may prevent
  128. * pipelining.
  129. *
  130. * This attribute may only be set before the channel is opened.
  131. *
  132. * @throws NS_ERROR_FAILURE if set after the channel has been opened.
  133. */
  134. /* attribute boolean allowPipelining; */
  135. NS_SCRIPTABLE NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) = 0;
  136. NS_SCRIPTABLE NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) = 0;
  137. /**
  138. * This attribute specifies the number of redirects this channel is allowed
  139. * to make. If zero, the channel will fail to redirect and will generate
  140. * a NS_ERROR_REDIRECT_LOOP failure status.
  141. *
  142. * NOTE: An HTTP redirect results in a new channel being created. If the
  143. * new channel supports nsIHttpChannel, then it will be assigned a value
  144. * to its |redirectionLimit| attribute one less than the value of the
  145. * redirected channel's |redirectionLimit| attribute. The initial value
  146. * for this attribute may be a configurable preference (depending on the
  147. * implementation).
  148. */
  149. /* attribute unsigned long redirectionLimit; */
  150. NS_SCRIPTABLE NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) = 0;
  151. NS_SCRIPTABLE NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) = 0;
  152. /**************************************************************************
  153. * RESPONSE INFO
  154. *
  155. * Accessing response info before the onStartRequest event is an error.
  156. */
  157. /**
  158. * Get the HTTP response code (e.g., 200).
  159. *
  160. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  161. * has been received (before onStartRequest).
  162. */
  163. /* readonly attribute unsigned long responseStatus; */
  164. NS_SCRIPTABLE NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) = 0;
  165. /**
  166. * Get the HTTP response status text (e.g., "OK").
  167. *
  168. * NOTE: This returns the raw (possibly 8-bit) text from the server. There
  169. * are no assumptions made about the charset of the returned text. You
  170. * have been warned!
  171. *
  172. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  173. * has been received (before onStartRequest).
  174. */
  175. /* readonly attribute ACString responseStatusText; */
  176. NS_SCRIPTABLE NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) = 0;
  177. /**
  178. * Returns true if the HTTP response code indicates success. The value of
  179. * nsIRequest::status will be NS_OK even when processing a 404 response
  180. * because a 404 response may include a message body that (in some cases)
  181. * should be shown to the user.
  182. *
  183. * Use this attribute to distinguish server error pages from normal pages,
  184. * instead of comparing the response status manually against the set of
  185. * valid response codes, if that is required by your application.
  186. *
  187. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  188. * has been received (before onStartRequest).
  189. */
  190. /* readonly attribute boolean requestSucceeded; */
  191. NS_SCRIPTABLE NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) = 0;
  192. /**
  193. * Get the value of a particular response header.
  194. *
  195. * @param aHeader
  196. * The case-insensitive name of the response header to query (e.g.,
  197. * "Set-Cookie").
  198. *
  199. * @return the value of the response header.
  200. *
  201. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  202. * has been received (before onStartRequest) or if the header is
  203. * not set in the response.
  204. */
  205. /* ACString getResponseHeader (in ACString header); */
  206. NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) = 0;
  207. /**
  208. * Set the value of a particular response header.
  209. *
  210. * This method allows, for example, the HTML content sink to inform the HTTP
  211. * channel about HTTP-EQUIV headers found in HTML <META> tags.
  212. *
  213. * @param aHeader
  214. * The case-insensitive name of the response header to set (e.g.,
  215. * "Cache-control").
  216. * @param aValue
  217. * The response header value to set (e.g., "no-cache").
  218. * @param aMerge
  219. * If true, the new header value will be merged with any existing
  220. * values for the specified header. This flag is ignored if the
  221. * specified header does not support merging (e.g., the "Content-
  222. * Type" header can only have one value). The list of headers for
  223. * which this flag is ignored is an implementation detail. If this
  224. * flag is false, then the header value will be replaced with the
  225. * contents of |aValue|.
  226. *
  227. * If aValue is empty and aMerge is false, the header will be cleared.
  228. *
  229. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  230. * has been received (before onStartRequest).
  231. * @throws NS_ERROR_ILLEGAL_VALUE if changing the value of this response
  232. * header is not allowed.
  233. */
  234. /* void setResponseHeader (in ACString header, in ACString value, in boolean merge); */
  235. NS_SCRIPTABLE NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge) = 0;
  236. /**
  237. * Call this method to visit all response headers. Calling
  238. * setResponseHeader while visiting response headers has undefined
  239. * behavior. Don't do it!
  240. *
  241. * @param aVisitor
  242. * the header visitor instance.
  243. *
  244. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  245. * has been received (before onStartRequest).
  246. */
  247. /* void visitResponseHeaders (in nsIHttpHeaderVisitor aVisitor); */
  248. NS_SCRIPTABLE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) = 0;
  249. /**
  250. * Returns true if the server sent a "Cache-Control: no-store" response
  251. * header.
  252. *
  253. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  254. * has been received (before onStartRequest).
  255. */
  256. /* boolean isNoStoreResponse (); */
  257. NS_SCRIPTABLE NS_IMETHOD IsNoStoreResponse(PRBool *_retval) = 0;
  258. /**
  259. * Returns true if the server sent the equivalent of a "Cache-control:
  260. * no-cache" response header. Equivalent response headers include:
  261. * "Pragma: no-cache", "Expires: 0", and "Expires" with a date value
  262. * in the past relative to the value of the "Date" header.
  263. *
  264. * @throws NS_ERROR_NOT_AVAILABLE if called before the response
  265. * has been received (before onStartRequest).
  266. */
  267. /* boolean isNoCacheResponse (); */
  268. NS_SCRIPTABLE NS_IMETHOD IsNoCacheResponse(PRBool *_retval) = 0;
  269. };
  270. NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpChannel, NS_IHTTPCHANNEL_IID)
  271. /* Use this macro when declaring classes that implement this interface. */
  272. #define NS_DECL_NSIHTTPCHANNEL \
  273. NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod); \
  274. NS_SCRIPTABLE NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod); \
  275. NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer); \
  276. NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI * aReferrer); \
  277. NS_SCRIPTABLE NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval); \
  278. NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge); \
  279. NS_SCRIPTABLE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor); \
  280. NS_SCRIPTABLE NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining); \
  281. NS_SCRIPTABLE NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining); \
  282. NS_SCRIPTABLE NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit); \
  283. NS_SCRIPTABLE NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit); \
  284. NS_SCRIPTABLE NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus); \
  285. NS_SCRIPTABLE NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText); \
  286. NS_SCRIPTABLE NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded); \
  287. NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval); \
  288. NS_SCRIPTABLE NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge); \
  289. NS_SCRIPTABLE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor); \
  290. NS_SCRIPTABLE NS_IMETHOD IsNoStoreResponse(PRBool *_retval); \
  291. NS_SCRIPTABLE NS_IMETHOD IsNoCacheResponse(PRBool *_retval);
  292. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  293. #define NS_FORWARD_NSIHTTPCHANNEL(_to) \
  294. NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return _to GetRequestMethod(aRequestMethod); } \
  295. NS_SCRIPTABLE NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) { return _to SetRequestMethod(aRequestMethod); } \
  296. NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return _to GetReferrer(aReferrer); } \
  297. NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return _to SetReferrer(aReferrer); } \
  298. NS_SCRIPTABLE NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval) { return _to GetRequestHeader(aHeader, _retval); } \
  299. NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge) { return _to SetRequestHeader(aHeader, aValue, aMerge); } \
  300. NS_SCRIPTABLE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) { return _to VisitRequestHeaders(aVisitor); } \
  301. NS_SCRIPTABLE NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) { return _to GetAllowPipelining(aAllowPipelining); } \
  302. NS_SCRIPTABLE NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) { return _to SetAllowPipelining(aAllowPipelining); } \
  303. NS_SCRIPTABLE NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) { return _to GetRedirectionLimit(aRedirectionLimit); } \
  304. NS_SCRIPTABLE NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) { return _to SetRedirectionLimit(aRedirectionLimit); } \
  305. NS_SCRIPTABLE NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) { return _to GetResponseStatus(aResponseStatus); } \
  306. NS_SCRIPTABLE NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) { return _to GetResponseStatusText(aResponseStatusText); } \
  307. NS_SCRIPTABLE NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) { return _to GetRequestSucceeded(aRequestSucceeded); } \
  308. NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) { return _to GetResponseHeader(header, _retval); } \
  309. NS_SCRIPTABLE NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge) { return _to SetResponseHeader(header, value, merge); } \
  310. NS_SCRIPTABLE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) { return _to VisitResponseHeaders(aVisitor); } \
  311. NS_SCRIPTABLE NS_IMETHOD IsNoStoreResponse(PRBool *_retval) { return _to IsNoStoreResponse(_retval); } \
  312. NS_SCRIPTABLE NS_IMETHOD IsNoCacheResponse(PRBool *_retval) { return _to IsNoCacheResponse(_retval); }
  313. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  314. #define NS_FORWARD_SAFE_NSIHTTPCHANNEL(_to) \
  315. NS_SCRIPTABLE NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \
  316. NS_SCRIPTABLE NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestMethod(aRequestMethod); } \
  317. NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  318. NS_SCRIPTABLE NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrer(aReferrer); } \
  319. NS_SCRIPTABLE NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestHeader(aHeader, _retval); } \
  320. NS_SCRIPTABLE NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestHeader(aHeader, aValue, aMerge); } \
  321. NS_SCRIPTABLE NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitRequestHeaders(aVisitor); } \
  322. NS_SCRIPTABLE NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowPipelining(aAllowPipelining); } \
  323. NS_SCRIPTABLE NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowPipelining(aAllowPipelining); } \
  324. NS_SCRIPTABLE NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectionLimit(aRedirectionLimit); } \
  325. NS_SCRIPTABLE NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRedirectionLimit(aRedirectionLimit); } \
  326. NS_SCRIPTABLE NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatus(aResponseStatus); } \
  327. NS_SCRIPTABLE NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatusText(aResponseStatusText); } \
  328. NS_SCRIPTABLE NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestSucceeded(aRequestSucceeded); } \
  329. NS_SCRIPTABLE NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseHeader(header, _retval); } \
  330. NS_SCRIPTABLE NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseHeader(header, value, merge); } \
  331. NS_SCRIPTABLE NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitResponseHeaders(aVisitor); } \
  332. NS_SCRIPTABLE NS_IMETHOD IsNoStoreResponse(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNoStoreResponse(_retval); } \
  333. NS_SCRIPTABLE NS_IMETHOD IsNoCacheResponse(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNoCacheResponse(_retval); }
  334. #if 0
  335. /* Use the code below as a template for the implementation class for this interface. */
  336. /* Header file */
  337. class nsHttpChannel : public nsIHttpChannel
  338. {
  339. public:
  340. NS_DECL_ISUPPORTS
  341. NS_DECL_NSIHTTPCHANNEL
  342. nsHttpChannel();
  343. private:
  344. ~nsHttpChannel();
  345. protected:
  346. /* additional members */
  347. };
  348. /* Implementation file */
  349. NS_IMPL_ISUPPORTS1(nsHttpChannel, nsIHttpChannel)
  350. nsHttpChannel::nsHttpChannel()
  351. {
  352. /* member initializers and constructor code */
  353. }
  354. nsHttpChannel::~nsHttpChannel()
  355. {
  356. /* destructor code */
  357. }
  358. /* attribute ACString requestMethod; */
  359. NS_IMETHODIMP nsHttpChannel::GetRequestMethod(nsACString & aRequestMethod)
  360. {
  361. return NS_ERROR_NOT_IMPLEMENTED;
  362. }
  363. NS_IMETHODIMP nsHttpChannel::SetRequestMethod(const nsACString & aRequestMethod)
  364. {
  365. return NS_ERROR_NOT_IMPLEMENTED;
  366. }
  367. /* attribute nsIURI referrer; */
  368. NS_IMETHODIMP nsHttpChannel::GetReferrer(nsIURI * *aReferrer)
  369. {
  370. return NS_ERROR_NOT_IMPLEMENTED;
  371. }
  372. NS_IMETHODIMP nsHttpChannel::SetReferrer(nsIURI * aReferrer)
  373. {
  374. return NS_ERROR_NOT_IMPLEMENTED;
  375. }
  376. /* ACString getRequestHeader (in ACString aHeader); */
  377. NS_IMETHODIMP nsHttpChannel::GetRequestHeader(const nsACString & aHeader, nsACString & _retval)
  378. {
  379. return NS_ERROR_NOT_IMPLEMENTED;
  380. }
  381. /* void setRequestHeader (in ACString aHeader, in ACString aValue, in boolean aMerge); */
  382. NS_IMETHODIMP nsHttpChannel::SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge)
  383. {
  384. return NS_ERROR_NOT_IMPLEMENTED;
  385. }
  386. /* void visitRequestHeaders (in nsIHttpHeaderVisitor aVisitor); */
  387. NS_IMETHODIMP nsHttpChannel::VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor)
  388. {
  389. return NS_ERROR_NOT_IMPLEMENTED;
  390. }
  391. /* attribute boolean allowPipelining; */
  392. NS_IMETHODIMP nsHttpChannel::GetAllowPipelining(PRBool *aAllowPipelining)
  393. {
  394. return NS_ERROR_NOT_IMPLEMENTED;
  395. }
  396. NS_IMETHODIMP nsHttpChannel::SetAllowPipelining(PRBool aAllowPipelining)
  397. {
  398. return NS_ERROR_NOT_IMPLEMENTED;
  399. }
  400. /* attribute unsigned long redirectionLimit; */
  401. NS_IMETHODIMP nsHttpChannel::GetRedirectionLimit(PRUint32 *aRedirectionLimit)
  402. {
  403. return NS_ERROR_NOT_IMPLEMENTED;
  404. }
  405. NS_IMETHODIMP nsHttpChannel::SetRedirectionLimit(PRUint32 aRedirectionLimit)
  406. {
  407. return NS_ERROR_NOT_IMPLEMENTED;
  408. }
  409. /* readonly attribute unsigned long responseStatus; */
  410. NS_IMETHODIMP nsHttpChannel::GetResponseStatus(PRUint32 *aResponseStatus)
  411. {
  412. return NS_ERROR_NOT_IMPLEMENTED;
  413. }
  414. /* readonly attribute ACString responseStatusText; */
  415. NS_IMETHODIMP nsHttpChannel::GetResponseStatusText(nsACString & aResponseStatusText)
  416. {
  417. return NS_ERROR_NOT_IMPLEMENTED;
  418. }
  419. /* readonly attribute boolean requestSucceeded; */
  420. NS_IMETHODIMP nsHttpChannel::GetRequestSucceeded(PRBool *aRequestSucceeded)
  421. {
  422. return NS_ERROR_NOT_IMPLEMENTED;
  423. }
  424. /* ACString getResponseHeader (in ACString header); */
  425. NS_IMETHODIMP nsHttpChannel::GetResponseHeader(const nsACString & header, nsACString & _retval)
  426. {
  427. return NS_ERROR_NOT_IMPLEMENTED;
  428. }
  429. /* void setResponseHeader (in ACString header, in ACString value, in boolean merge); */
  430. NS_IMETHODIMP nsHttpChannel::SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge)
  431. {
  432. return NS_ERROR_NOT_IMPLEMENTED;
  433. }
  434. /* void visitResponseHeaders (in nsIHttpHeaderVisitor aVisitor); */
  435. NS_IMETHODIMP nsHttpChannel::VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor)
  436. {
  437. return NS_ERROR_NOT_IMPLEMENTED;
  438. }
  439. /* boolean isNoStoreResponse (); */
  440. NS_IMETHODIMP nsHttpChannel::IsNoStoreResponse(PRBool *_retval)
  441. {
  442. return NS_ERROR_NOT_IMPLEMENTED;
  443. }
  444. /* boolean isNoCacheResponse (); */
  445. NS_IMETHODIMP nsHttpChannel::IsNoCacheResponse(PRBool *_retval)
  446. {
  447. return NS_ERROR_NOT_IMPLEMENTED;
  448. }
  449. /* End of implementation class template. */
  450. #endif
  451. #endif /* __gen_nsIHttpChannel_h__ */