Compare Revisions

nsIChannel

Change Revisions

Revision 308277:

Revision 308277 by pde on

Revision 344129:

Revision 344129 by rnewman on

Title:
nsIChannel
nsIChannel
Slug:
XPCOM_Interface_Reference/nsIChannel
XPCOM_Interface_Reference/nsIChannel
Tags:
"XPCOM Interface Reference", "Interfaces:Scriptable", "XPCOM", "Interfaces", "XPCOM API Reference"
"XPCOM Interface Reference", "Interfaces:Scriptable", "XPCOM", "Interfaces", "XPCOM API Reference"
Content:

Revision 308277
Revision 344129
nn351      <dt>
352        <code>NS_ERROR_PORT_ACCESS_NOT_ALLOWED</code>
353      </dt>
354      <dd>
355        If the specified port is in the <a href="http://dxr.mozil
 >la.org/mozilla-central/netwerk/base/src/nsIOService.cpp.html#l76"
 > title="nsIOService forbidden list"><code>nsIOService</code> forb
 >idden port list.</a>
356      </dd>
n353      open()n359      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">open()</a>
n356      Synchronously open the channel.n362      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">Synchronously open the channel.</a>
357    </p>
358    <p>363    </p>
364    <p>
359      {{note("Extensions should not call this method, because it 365      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
>tends to fail when a request is redirected, rather than redirecti>e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
>ng transparently")}}{{note("<code>nsIChannel</code> implementatio>">{{note("Extensions should not call this method, because it tend
>ns are not required to implement this method. Moreover, since thi>s to fail when a request is redirected, rather than redirecting t
>s method may block the calling thread, it should not be called on>ransparently")}}{{note("<code>nsIChannel</code> implementations a
> a thread that processes UI events. Like any other <code>nsIChann>re not required to implement this method. Moreover, since this me
>el</code> method it must not be called on any thread other than t>thod may block the calling thread, it should not be called on a t
>he XPCOM main thread.") }}>hread that processes UI events. Like any other <code>nsIChannel</
 >code> method it must not be called on any thread other than the X
 >PCOM main thread.") }}</a>
n362nsIInputStream open();n368<a href="http://dxr.mozilla.org/mozilla-central/netwerk/base/src/
 >nsIOService.cpp.html#l76" title="nsIOService forbidden list">nsII
 >nputStream open();
369</a>
n365      Parametersn372      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">Parameters</a>
n368      None.n375      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">None.</a>
n371      Return valuen378      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">Return value</a>
n374      Blocking input stream to the channel's data.n381      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">Blocking input stream to the channel's data.</a>
n377      Exceptions thrownn384      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">Exceptions thrown</a>
n381        <code>NS_ERROR_IN_PROGRESS</code>n388        <a href="http://dxr.mozilla.org/mozilla-central/netwerk/b
 >ase/src/nsIOService.cpp.html#l76" title="nsIOService forbidden li
 >st"><code>NS_ERROR_IN_PROGRESS</code></a>
n384        If the channel is reopened.n391        <a href="http://dxr.mozilla.org/mozilla-central/netwerk/b
 >ase/src/nsIOService.cpp.html#l76" title="nsIOService forbidden li
 >st">If the channel is reopened.</a>
n388      See alson395      <a href="http://dxr.mozilla.org/mozilla-central/netwerk/bas
 >e/src/nsIOService.cpp.html#l76" title="nsIOService forbidden list
 >">See also</a>
t391      <li>{{ Interface("nsIChannelEventSink") }} for <code>onChant398      <li>
>nelRedirect</code> 
399        <a href="http://dxr.mozilla.org/mozilla-central/netwerk/b
 >ase/src/nsIOService.cpp.html#l76" title="nsIOService forbidden li
 >st">{{ Interface("nsIChannelEventSink") }} for <code>onChannelRed
 >irect</code></a>

Back to History