PageRenderTime 43ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/mozilla/mozilla/dist/include/necko/nsIHttpChannel.h

http://kmbrasil.codeplex.com
C++ Header | 504 lines | 192 code | 54 blank | 258 comment | 0 complexity | 3213fa91c624cb7435f107a4586b04ef MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/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 nsIHttpChannel : public nsIChannel {
  29. public:
  30. NS_DEFINE_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_IMETHOD GetRequestMethod(nsACString & aRequestMethod) = 0;
  51. 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_IMETHOD GetReferrer(nsIURI * *aReferrer) = 0;
  69. 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_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_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_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_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) = 0;
  136. 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_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) = 0;
  151. 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_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_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_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_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_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_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_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_IMETHOD IsNoCacheResponse(PRBool *_retval) = 0;
  269. };
  270. /* Use this macro when declaring classes that implement this interface. */
  271. #define NS_DECL_NSIHTTPCHANNEL \
  272. NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod); \
  273. NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod); \
  274. NS_IMETHOD GetReferrer(nsIURI * *aReferrer); \
  275. NS_IMETHOD SetReferrer(nsIURI * aReferrer); \
  276. NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval); \
  277. NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge); \
  278. NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor); \
  279. NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining); \
  280. NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining); \
  281. NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit); \
  282. NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit); \
  283. NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus); \
  284. NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText); \
  285. NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded); \
  286. NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval); \
  287. NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge); \
  288. NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor); \
  289. NS_IMETHOD IsNoStoreResponse(PRBool *_retval); \
  290. NS_IMETHOD IsNoCacheResponse(PRBool *_retval);
  291. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  292. #define NS_FORWARD_NSIHTTPCHANNEL(_to) \
  293. NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return _to GetRequestMethod(aRequestMethod); } \
  294. NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) { return _to SetRequestMethod(aRequestMethod); } \
  295. NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return _to GetReferrer(aReferrer); } \
  296. NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return _to SetReferrer(aReferrer); } \
  297. NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval) { return _to GetRequestHeader(aHeader, _retval); } \
  298. NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge) { return _to SetRequestHeader(aHeader, aValue, aMerge); } \
  299. NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) { return _to VisitRequestHeaders(aVisitor); } \
  300. NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) { return _to GetAllowPipelining(aAllowPipelining); } \
  301. NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) { return _to SetAllowPipelining(aAllowPipelining); } \
  302. NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) { return _to GetRedirectionLimit(aRedirectionLimit); } \
  303. NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) { return _to SetRedirectionLimit(aRedirectionLimit); } \
  304. NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) { return _to GetResponseStatus(aResponseStatus); } \
  305. NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) { return _to GetResponseStatusText(aResponseStatusText); } \
  306. NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) { return _to GetRequestSucceeded(aRequestSucceeded); } \
  307. NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) { return _to GetResponseHeader(header, _retval); } \
  308. NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge) { return _to SetResponseHeader(header, value, merge); } \
  309. NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) { return _to VisitResponseHeaders(aVisitor); } \
  310. NS_IMETHOD IsNoStoreResponse(PRBool *_retval) { return _to IsNoStoreResponse(_retval); } \
  311. NS_IMETHOD IsNoCacheResponse(PRBool *_retval) { return _to IsNoCacheResponse(_retval); }
  312. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  313. #define NS_FORWARD_SAFE_NSIHTTPCHANNEL(_to) \
  314. NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \
  315. NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestMethod(aRequestMethod); } \
  316. NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  317. NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrer(aReferrer); } \
  318. NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestHeader(aHeader, _retval); } \
  319. NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestHeader(aHeader, aValue, aMerge); } \
  320. NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitRequestHeaders(aVisitor); } \
  321. NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowPipelining(aAllowPipelining); } \
  322. NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowPipelining(aAllowPipelining); } \
  323. NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRedirectionLimit(aRedirectionLimit); } \
  324. NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRedirectionLimit(aRedirectionLimit); } \
  325. NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatus(aResponseStatus); } \
  326. NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatusText(aResponseStatusText); } \
  327. NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestSucceeded(aRequestSucceeded); } \
  328. NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseHeader(header, _retval); } \
  329. NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseHeader(header, value, merge); } \
  330. NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitResponseHeaders(aVisitor); } \
  331. NS_IMETHOD IsNoStoreResponse(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNoStoreResponse(_retval); } \
  332. NS_IMETHOD IsNoCacheResponse(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNoCacheResponse(_retval); }
  333. #if 0
  334. /* Use the code below as a template for the implementation class for this interface. */
  335. /* Header file */
  336. class nsHttpChannel : public nsIHttpChannel
  337. {
  338. public:
  339. NS_DECL_ISUPPORTS
  340. NS_DECL_NSIHTTPCHANNEL
  341. nsHttpChannel();
  342. private:
  343. ~nsHttpChannel();
  344. protected:
  345. /* additional members */
  346. };
  347. /* Implementation file */
  348. NS_IMPL_ISUPPORTS1(nsHttpChannel, nsIHttpChannel)
  349. nsHttpChannel::nsHttpChannel()
  350. {
  351. /* member initializers and constructor code */
  352. }
  353. nsHttpChannel::~nsHttpChannel()
  354. {
  355. /* destructor code */
  356. }
  357. /* attribute ACString requestMethod; */
  358. NS_IMETHODIMP nsHttpChannel::GetRequestMethod(nsACString & aRequestMethod)
  359. {
  360. return NS_ERROR_NOT_IMPLEMENTED;
  361. }
  362. NS_IMETHODIMP nsHttpChannel::SetRequestMethod(const nsACString & aRequestMethod)
  363. {
  364. return NS_ERROR_NOT_IMPLEMENTED;
  365. }
  366. /* attribute nsIURI referrer; */
  367. NS_IMETHODIMP nsHttpChannel::GetReferrer(nsIURI * *aReferrer)
  368. {
  369. return NS_ERROR_NOT_IMPLEMENTED;
  370. }
  371. NS_IMETHODIMP nsHttpChannel::SetReferrer(nsIURI * aReferrer)
  372. {
  373. return NS_ERROR_NOT_IMPLEMENTED;
  374. }
  375. /* ACString getRequestHeader (in ACString aHeader); */
  376. NS_IMETHODIMP nsHttpChannel::GetRequestHeader(const nsACString & aHeader, nsACString & _retval)
  377. {
  378. return NS_ERROR_NOT_IMPLEMENTED;
  379. }
  380. /* void setRequestHeader (in ACString aHeader, in ACString aValue, in boolean aMerge); */
  381. NS_IMETHODIMP nsHttpChannel::SetRequestHeader(const nsACString & aHeader, const nsACString & aValue, PRBool aMerge)
  382. {
  383. return NS_ERROR_NOT_IMPLEMENTED;
  384. }
  385. /* void visitRequestHeaders (in nsIHttpHeaderVisitor aVisitor); */
  386. NS_IMETHODIMP nsHttpChannel::VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor)
  387. {
  388. return NS_ERROR_NOT_IMPLEMENTED;
  389. }
  390. /* attribute boolean allowPipelining; */
  391. NS_IMETHODIMP nsHttpChannel::GetAllowPipelining(PRBool *aAllowPipelining)
  392. {
  393. return NS_ERROR_NOT_IMPLEMENTED;
  394. }
  395. NS_IMETHODIMP nsHttpChannel::SetAllowPipelining(PRBool aAllowPipelining)
  396. {
  397. return NS_ERROR_NOT_IMPLEMENTED;
  398. }
  399. /* attribute unsigned long redirectionLimit; */
  400. NS_IMETHODIMP nsHttpChannel::GetRedirectionLimit(PRUint32 *aRedirectionLimit)
  401. {
  402. return NS_ERROR_NOT_IMPLEMENTED;
  403. }
  404. NS_IMETHODIMP nsHttpChannel::SetRedirectionLimit(PRUint32 aRedirectionLimit)
  405. {
  406. return NS_ERROR_NOT_IMPLEMENTED;
  407. }
  408. /* readonly attribute unsigned long responseStatus; */
  409. NS_IMETHODIMP nsHttpChannel::GetResponseStatus(PRUint32 *aResponseStatus)
  410. {
  411. return NS_ERROR_NOT_IMPLEMENTED;
  412. }
  413. /* readonly attribute ACString responseStatusText; */
  414. NS_IMETHODIMP nsHttpChannel::GetResponseStatusText(nsACString & aResponseStatusText)
  415. {
  416. return NS_ERROR_NOT_IMPLEMENTED;
  417. }
  418. /* readonly attribute boolean requestSucceeded; */
  419. NS_IMETHODIMP nsHttpChannel::GetRequestSucceeded(PRBool *aRequestSucceeded)
  420. {
  421. return NS_ERROR_NOT_IMPLEMENTED;
  422. }
  423. /* ACString getResponseHeader (in ACString header); */
  424. NS_IMETHODIMP nsHttpChannel::GetResponseHeader(const nsACString & header, nsACString & _retval)
  425. {
  426. return NS_ERROR_NOT_IMPLEMENTED;
  427. }
  428. /* void setResponseHeader (in ACString header, in ACString value, in boolean merge); */
  429. NS_IMETHODIMP nsHttpChannel::SetResponseHeader(const nsACString & header, const nsACString & value, PRBool merge)
  430. {
  431. return NS_ERROR_NOT_IMPLEMENTED;
  432. }
  433. /* void visitResponseHeaders (in nsIHttpHeaderVisitor aVisitor); */
  434. NS_IMETHODIMP nsHttpChannel::VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor)
  435. {
  436. return NS_ERROR_NOT_IMPLEMENTED;
  437. }
  438. /* boolean isNoStoreResponse (); */
  439. NS_IMETHODIMP nsHttpChannel::IsNoStoreResponse(PRBool *_retval)
  440. {
  441. return NS_ERROR_NOT_IMPLEMENTED;
  442. }
  443. /* boolean isNoCacheResponse (); */
  444. NS_IMETHODIMP nsHttpChannel::IsNoCacheResponse(PRBool *_retval)
  445. {
  446. return NS_ERROR_NOT_IMPLEMENTED;
  447. }
  448. /* End of implementation class template. */
  449. #endif
  450. #endif /* __gen_nsIHttpChannel_h__ */