OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/netwerk/protocol/http/public/nsIHttpChannel.id
l |
| 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 |
| 17 class 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 */ |
| 36 class NS_NO_VTABLE nsIHttpChannel : public nsIChannel { |
| 37 public: |
| 38 |
| 39 NS_DEFINE_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_IMETHOD GetRequestMethod(nsACString & aRequestMethod) = 0; |
| 61 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_IMETHOD GetReferrer(nsIURI * *aReferrer) = 0; |
| 80 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_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_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aVa
lue, 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_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_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) = 0; |
| 151 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_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) = 0; |
| 167 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_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_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_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_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 m
erge); */ |
| 256 NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & val
ue, 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_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_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_IMETHOD IsNoCacheResponse(PRBool *_retval) = 0; |
| 293 |
| 294 }; |
| 295 |
| 296 /* Use this macro when declaring classes that implement this interface. */ |
| 297 #define NS_DECL_NSIHTTPCHANNEL \ |
| 298 NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod); \ |
| 299 NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod); \ |
| 300 NS_IMETHOD GetReferrer(nsIURI * *aReferrer); \ |
| 301 NS_IMETHOD SetReferrer(nsIURI * aReferrer); \ |
| 302 NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval);
\ |
| 303 NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aVa
lue, PRBool aMerge); \ |
| 304 NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor); \ |
| 305 NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining); \ |
| 306 NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining); \ |
| 307 NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit); \ |
| 308 NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit); \ |
| 309 NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus); \ |
| 310 NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText); \ |
| 311 NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded); \ |
| 312 NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval);
\ |
| 313 NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & val
ue, PRBool merge); \ |
| 314 NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor); \ |
| 315 NS_IMETHOD IsNoStoreResponse(PRBool *_retval); \ |
| 316 NS_IMETHOD IsNoCacheResponse(PRBool *_retval); |
| 317 |
| 318 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 319 #define NS_FORWARD_NSIHTTPCHANNEL(_to) \ |
| 320 NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return _to GetReque
stMethod(aRequestMethod); } \ |
| 321 NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) { return _to Se
tRequestMethod(aRequestMethod); } \ |
| 322 NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return _to GetReferrer(aReferrer
); } \ |
| 323 NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return _to SetReferrer(aReferrer)
; } \ |
| 324 NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval)
{ return _to GetRequestHeader(aHeader, _retval); } \ |
| 325 NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aVa
lue, PRBool aMerge) { return _to SetRequestHeader(aHeader, aValue, aMerge); } \ |
| 326 NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) { return _to Vi
sitRequestHeaders(aVisitor); } \ |
| 327 NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) { return _to GetAllowP
ipelining(aAllowPipelining); } \ |
| 328 NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) { return _to SetAllowPi
pelining(aAllowPipelining); } \ |
| 329 NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) { return _to GetRe
directionLimit(aRedirectionLimit); } \ |
| 330 NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) { return _to SetRed
irectionLimit(aRedirectionLimit); } \ |
| 331 NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) { return _to GetRespon
seStatus(aResponseStatus); } \ |
| 332 NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) { return _t
o GetResponseStatusText(aResponseStatusText); } \ |
| 333 NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) { return _to GetRequ
estSucceeded(aRequestSucceeded); } \ |
| 334 NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval)
{ return _to GetResponseHeader(header, _retval); } \ |
| 335 NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & val
ue, PRBool merge) { return _to SetResponseHeader(header, value, merge); } \ |
| 336 NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) { return _to V
isitResponseHeaders(aVisitor); } \ |
| 337 NS_IMETHOD IsNoStoreResponse(PRBool *_retval) { return _to IsNoStoreResponse(_
retval); } \ |
| 338 NS_IMETHOD IsNoCacheResponse(PRBool *_retval) { return _to IsNoCacheResponse(_
retval); } |
| 339 |
| 340 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 341 #define NS_FORWARD_SAFE_NSIHTTPCHANNEL(_to) \ |
| 342 NS_IMETHOD GetRequestMethod(nsACString & aRequestMethod) { return !_to ? NS_ER
ROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \ |
| 343 NS_IMETHOD SetRequestMethod(const nsACString & aRequestMethod) { return !_to ?
NS_ERROR_NULL_POINTER : _to->SetRequestMethod(aRequestMethod); } \ |
| 344 NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->GetReferrer(aReferrer); } \ |
| 345 NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return !_to ? NS_ERROR_NULL_POINT
ER : _to->SetReferrer(aReferrer); } \ |
| 346 NS_IMETHOD GetRequestHeader(const nsACString & aHeader, nsACString & _retval)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestHeader(aHeader, _retval);
} \ |
| 347 NS_IMETHOD SetRequestHeader(const nsACString & aHeader, const nsACString & aVa
lue, PRBool aMerge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestHeade
r(aHeader, aValue, aMerge); } \ |
| 348 NS_IMETHOD VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) { return !_to ?
NS_ERROR_NULL_POINTER : _to->VisitRequestHeaders(aVisitor); } \ |
| 349 NS_IMETHOD GetAllowPipelining(PRBool *aAllowPipelining) { return !_to ? NS_ERR
OR_NULL_POINTER : _to->GetAllowPipelining(aAllowPipelining); } \ |
| 350 NS_IMETHOD SetAllowPipelining(PRBool aAllowPipelining) { return !_to ? NS_ERRO
R_NULL_POINTER : _to->SetAllowPipelining(aAllowPipelining); } \ |
| 351 NS_IMETHOD GetRedirectionLimit(PRUint32 *aRedirectionLimit) { return !_to ? NS
_ERROR_NULL_POINTER : _to->GetRedirectionLimit(aRedirectionLimit); } \ |
| 352 NS_IMETHOD SetRedirectionLimit(PRUint32 aRedirectionLimit) { return !_to ? NS_
ERROR_NULL_POINTER : _to->SetRedirectionLimit(aRedirectionLimit); } \ |
| 353 NS_IMETHOD GetResponseStatus(PRUint32 *aResponseStatus) { return !_to ? NS_ERR
OR_NULL_POINTER : _to->GetResponseStatus(aResponseStatus); } \ |
| 354 NS_IMETHOD GetResponseStatusText(nsACString & aResponseStatusText) { return !_
to ? NS_ERROR_NULL_POINTER : _to->GetResponseStatusText(aResponseStatusText); }
\ |
| 355 NS_IMETHOD GetRequestSucceeded(PRBool *aRequestSucceeded) { return !_to ? NS_E
RROR_NULL_POINTER : _to->GetRequestSucceeded(aRequestSucceeded); } \ |
| 356 NS_IMETHOD GetResponseHeader(const nsACString & header, nsACString & _retval)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseHeader(header, _retval);
} \ |
| 357 NS_IMETHOD SetResponseHeader(const nsACString & header, const nsACString & val
ue, PRBool merge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResponseHeader
(header, value, merge); } \ |
| 358 NS_IMETHOD VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor) { return !_to
? NS_ERROR_NULL_POINTER : _to->VisitResponseHeaders(aVisitor); } \ |
| 359 NS_IMETHOD IsNoStoreResponse(PRBool *_retval) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->IsNoStoreResponse(_retval); } \ |
| 360 NS_IMETHOD IsNoCacheResponse(PRBool *_retval) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->IsNoCacheResponse(_retval); } |
| 361 |
| 362 #if 0 |
| 363 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 364 |
| 365 /* Header file */ |
| 366 class nsHttpChannel : public nsIHttpChannel |
| 367 { |
| 368 public: |
| 369 NS_DECL_ISUPPORTS |
| 370 NS_DECL_NSIHTTPCHANNEL |
| 371 |
| 372 nsHttpChannel(); |
| 373 |
| 374 private: |
| 375 ~nsHttpChannel(); |
| 376 |
| 377 protected: |
| 378 /* additional members */ |
| 379 }; |
| 380 |
| 381 /* Implementation file */ |
| 382 NS_IMPL_ISUPPORTS1(nsHttpChannel, nsIHttpChannel) |
| 383 |
| 384 nsHttpChannel::nsHttpChannel() |
| 385 { |
| 386 /* member initializers and constructor code */ |
| 387 } |
| 388 |
| 389 nsHttpChannel::~nsHttpChannel() |
| 390 { |
| 391 /* destructor code */ |
| 392 } |
| 393 |
| 394 /* attribute ACString requestMethod; */ |
| 395 NS_IMETHODIMP nsHttpChannel::GetRequestMethod(nsACString & aRequestMethod) |
| 396 { |
| 397 return NS_ERROR_NOT_IMPLEMENTED; |
| 398 } |
| 399 NS_IMETHODIMP nsHttpChannel::SetRequestMethod(const nsACString & aRequestMethod) |
| 400 { |
| 401 return NS_ERROR_NOT_IMPLEMENTED; |
| 402 } |
| 403 |
| 404 /* attribute nsIURI referrer; */ |
| 405 NS_IMETHODIMP nsHttpChannel::GetReferrer(nsIURI * *aReferrer) |
| 406 { |
| 407 return NS_ERROR_NOT_IMPLEMENTED; |
| 408 } |
| 409 NS_IMETHODIMP nsHttpChannel::SetReferrer(nsIURI * aReferrer) |
| 410 { |
| 411 return NS_ERROR_NOT_IMPLEMENTED; |
| 412 } |
| 413 |
| 414 /* ACString getRequestHeader (in ACString aHeader); */ |
| 415 NS_IMETHODIMP nsHttpChannel::GetRequestHeader(const nsACString & aHeader, nsACSt
ring & _retval) |
| 416 { |
| 417 return NS_ERROR_NOT_IMPLEMENTED; |
| 418 } |
| 419 |
| 420 /* void setRequestHeader (in ACString aHeader, in ACString aValue, in boolean aM
erge); */ |
| 421 NS_IMETHODIMP nsHttpChannel::SetRequestHeader(const nsACString & aHeader, const
nsACString & aValue, PRBool aMerge) |
| 422 { |
| 423 return NS_ERROR_NOT_IMPLEMENTED; |
| 424 } |
| 425 |
| 426 /* void visitRequestHeaders (in nsIHttpHeaderVisitor aVisitor); */ |
| 427 NS_IMETHODIMP nsHttpChannel::VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor) |
| 428 { |
| 429 return NS_ERROR_NOT_IMPLEMENTED; |
| 430 } |
| 431 |
| 432 /* attribute boolean allowPipelining; */ |
| 433 NS_IMETHODIMP nsHttpChannel::GetAllowPipelining(PRBool *aAllowPipelining) |
| 434 { |
| 435 return NS_ERROR_NOT_IMPLEMENTED; |
| 436 } |
| 437 NS_IMETHODIMP nsHttpChannel::SetAllowPipelining(PRBool aAllowPipelining) |
| 438 { |
| 439 return NS_ERROR_NOT_IMPLEMENTED; |
| 440 } |
| 441 |
| 442 /* attribute unsigned long redirectionLimit; */ |
| 443 NS_IMETHODIMP nsHttpChannel::GetRedirectionLimit(PRUint32 *aRedirectionLimit) |
| 444 { |
| 445 return NS_ERROR_NOT_IMPLEMENTED; |
| 446 } |
| 447 NS_IMETHODIMP nsHttpChannel::SetRedirectionLimit(PRUint32 aRedirectionLimit) |
| 448 { |
| 449 return NS_ERROR_NOT_IMPLEMENTED; |
| 450 } |
| 451 |
| 452 /* readonly attribute unsigned long responseStatus; */ |
| 453 NS_IMETHODIMP nsHttpChannel::GetResponseStatus(PRUint32 *aResponseStatus) |
| 454 { |
| 455 return NS_ERROR_NOT_IMPLEMENTED; |
| 456 } |
| 457 |
| 458 /* readonly attribute ACString responseStatusText; */ |
| 459 NS_IMETHODIMP nsHttpChannel::GetResponseStatusText(nsACString & aResponseStatusT
ext) |
| 460 { |
| 461 return NS_ERROR_NOT_IMPLEMENTED; |
| 462 } |
| 463 |
| 464 /* readonly attribute boolean requestSucceeded; */ |
| 465 NS_IMETHODIMP nsHttpChannel::GetRequestSucceeded(PRBool *aRequestSucceeded) |
| 466 { |
| 467 return NS_ERROR_NOT_IMPLEMENTED; |
| 468 } |
| 469 |
| 470 /* ACString getResponseHeader (in ACString header); */ |
| 471 NS_IMETHODIMP nsHttpChannel::GetResponseHeader(const nsACString & header, nsACSt
ring & _retval) |
| 472 { |
| 473 return NS_ERROR_NOT_IMPLEMENTED; |
| 474 } |
| 475 |
| 476 /* void setResponseHeader (in ACString header, in ACString value, in boolean mer
ge); */ |
| 477 NS_IMETHODIMP nsHttpChannel::SetResponseHeader(const nsACString & header, const
nsACString & value, PRBool merge) |
| 478 { |
| 479 return NS_ERROR_NOT_IMPLEMENTED; |
| 480 } |
| 481 |
| 482 /* void visitResponseHeaders (in nsIHttpHeaderVisitor aVisitor); */ |
| 483 NS_IMETHODIMP nsHttpChannel::VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor
) |
| 484 { |
| 485 return NS_ERROR_NOT_IMPLEMENTED; |
| 486 } |
| 487 |
| 488 /* boolean isNoStoreResponse (); */ |
| 489 NS_IMETHODIMP nsHttpChannel::IsNoStoreResponse(PRBool *_retval) |
| 490 { |
| 491 return NS_ERROR_NOT_IMPLEMENTED; |
| 492 } |
| 493 |
| 494 /* boolean isNoCacheResponse (); */ |
| 495 NS_IMETHODIMP nsHttpChannel::IsNoCacheResponse(PRBool *_retval) |
| 496 { |
| 497 return NS_ERROR_NOT_IMPLEMENTED; |
| 498 } |
| 499 |
| 500 /* End of implementation class template. */ |
| 501 #endif |
| 502 |
| 503 |
| 504 #endif /* __gen_nsIHttpChannel_h__ */ |
OLD | NEW |