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