Lines Matching refs:OpenerDirector
76 the default installed global :class:`OpenerDirector` uses
127 Install an :class:`OpenerDirector` instance as the default global opener.
129 opener; otherwise, simply call :meth:`OpenerDirector.open` instead of
131 :class:`OpenerDirector`, and any class with the appropriate interface will
137 Return an :class:`OpenerDirector` instance, which chains the handlers in the
271 .. class:: OpenerDirector()
273 The :class:`OpenerDirector` class opens URLs via :class:`BaseHandler`\ s chained
605 OpenerDirector Objects
608 :class:`OpenerDirector` instances have the following methods:
611 .. method:: OpenerDirector.add_handler(handler)
649 .. method:: OpenerDirector.open(url, data=None[, timeout])
654 method on the currently installed global :class:`OpenerDirector`). The
661 .. method:: OpenerDirector.error(proto, *args)
671 OpenerDirector objects open URLs in three stages:
691 :class:`OpenerDirector` instance's :meth:`~OpenerDirector.open` and
692 :meth:`~OpenerDirector.error` methods.
729 A valid :class:`OpenerDirector`, which can be used to open using a different
739 :class:`OpenerDirector`. It should return a file-like object as described in
740 the return value of the :meth:`open` of :class:`OpenerDirector`, or ``None``.
755 This method, if defined, will be called by the parent :class:`OpenerDirector`.
766 :class:`OpenerDirector`. Return values should be the same as for
774 errors. It will be called automatically by the :class:`OpenerDirector` getting
806 This method, if defined, will be called by the parent :class:`OpenerDirector`.
818 This method, if defined, will be called by the parent :class:`OpenerDirector`.
863 parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' response.
1159 :meth:`http_error_\<type\>` handler methods, via :meth:`OpenerDirector.error`.
1252 # Create an OpenerDirector with support for Basic HTTP Authentication...
1278 # This time, rather than install the OpenerDirector, we use it directly:
1292 :class:`OpenerDirector` automatically adds a :mailheader:`User-Agent` header to
1303 :meth:`OpenerDirector.open`).