Struct xpcom::interfaces::nsIHttpAuthenticableChannel [] [src]

#[repr(C)]
pub struct nsIHttpAuthenticableChannel { /* fields omitted */ }

interface nsIHttpAuthenticableChannel : nsIProxiedChannel

Methods

impl nsIHttpAuthenticableChannel
[src]

[src]

Cast this nsIHttpAuthenticableChannel to one of its base interfaces.

impl nsIHttpAuthenticableChannel
[src]

[src]

/**
     * If the channel being authenticated is using SSL.
     */

[must_use] readonly attribute boolean isSSL;

[src]

/**
     * Returns if the proxy HTTP method used is CONNECT. If no proxy is being
     * used it must return PR_FALSE.
     */

[must_use] readonly attribute boolean proxyMethodIsConnect;

[src]

/**
     * Cancels the current request. See nsIRequest.
     */

[must_use] void cancel (in nsresult aStatus);

[src]

/**
     * The load flags of this request. See nsIRequest.
     */

[must_use] readonly attribute nsLoadFlags loadFlags;

[src]

/**
     * The URI corresponding to the channel. See nsIChannel.
     */

[must_use] readonly attribute nsIURI URI;

[src]

/**
     * The load group of this request. It is here for querying its
     * notificationCallbacks. See nsIRequest.
     */

[must_use] readonly attribute nsILoadGroup loadGroup;

[src]

/**
     * The notification callbacks for the channel. See nsIChannel.
     */

[must_use] readonly attribute nsIInterfaceRequestor notificationCallbacks;

[src]

/**
     * The HTTP request method. See nsIHttpChannel.
     */

[must_use] readonly attribute ACString requestMethod;

[src]

/**
     * The "Server" response header.
     * Return NS_ERROR_NOT_AVAILABLE if not available.
     */

[must_use] readonly attribute ACString serverResponseHeader;

[src]

/**
     * The Proxy-Authenticate response header.
     */

[must_use] readonly attribute ACString proxyChallenges;

[src]

/**
     * The WWW-Authenticate response header.
     */

[must_use] readonly attribute ACString WWWChallenges;

[src]

/**
     * Sets the Proxy-Authorization request header. An empty string
     * will clear it.
     */

[must_use] void setProxyCredentials (in ACString credentials);

[src]

/**
     * Sets the Authorization request header. An empty string
     * will clear it.
     */

[must_use] void setWWWCredentials (in ACString credentials);

[src]

/**
     * Called when authentication information is ready and has been set on this
     * object using setWWWCredentials/setProxyCredentials. Implementations can
     * continue with the request and send the given information to the server.
     *
     * It is called asynchronously from
     * nsIHttpChannelAuthProvider::processAuthentication if that method returns
     * NS_ERROR_IN_PROGRESS.
     *
     * @note  Any exceptions thrown from this method should be ignored.
     */

[must_use] void onAuthAvailable ();

[src]

/**
     * Notifies that the prompt was cancelled. It is called asynchronously
     * from nsIHttpChannelAuthProvider::processAuthentication if that method
     * returns NS_ERROR_IN_PROGRESS.
     *
     * @param userCancel
     *        If the user was cancelled has cancelled the authentication prompt.
     */

[must_use] void onAuthCancelled (in boolean userCancel);

[src]

/**
     * Tells the channel to drop and close any sticky connection, since this
     * connection oriented schema cannot be negotiated second time on
     * the same connection.
     */

[must_use] void closeStickyConnection ();

[src]

/**
     * Tells the channel to mark the connection as allowed to restart on
     * authentication retry.  This is allowed when the request is a start
     * of a new authentication round.
     */

void connectionRestartable (in boolean restartable);

Methods from Deref<Target = nsIProxiedChannel>

[src]

Cast this nsIProxiedChannel to one of its base interfaces.

[src]

/**
   * Gets the proxy info the channel was constructed with. null or a
   * proxyInfo with type "direct" mean no proxy.
   *
   * The returned proxy info must not be modified.
   */

readonly attribute nsIProxyInfo proxyInfo;

Trait Implementations

impl XpCom for nsIHttpAuthenticableChannel
[src]

IID: nsIID = nsID(1880134572, 23679, 17052, [153, 227, 66, 59, 4, 31, 204, 180])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIHttpAuthenticableChannel
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIHttpAuthenticableChannel
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.