Lines Matching refs:OpenerDirector
76 the default installed global :class:`OpenerDirector` uses
122 Install an :class:`OpenerDirector` instance as the default global opener.
124 opener; otherwise, simply call :meth:`OpenerDirector.open` instead of
126 :class:`OpenerDirector`, and any class with the appropriate interface will
132 Return an :class:`OpenerDirector` instance, which chains the handlers in the
266 .. class:: OpenerDirector()
268 The :class:`OpenerDirector` class opens URLs via :class:`BaseHandler`\ s chained
600 OpenerDirector Objects
603 :class:`OpenerDirector` instances have the following methods:
606 .. method:: OpenerDirector.add_handler(handler)
644 .. method:: OpenerDirector.open(url, data=None[, timeout])
649 method on the currently installed global :class:`OpenerDirector`). The
656 .. method:: OpenerDirector.error(proto, *args)
666 OpenerDirector objects open URLs in three stages:
686 :class:`OpenerDirector` instance's :meth:`~OpenerDirector.open` and
687 :meth:`~OpenerDirector.error` methods.
724 A valid :class:`OpenerDirector`, which can be used to open using a different
734 :class:`OpenerDirector`. It should return a file-like object as described in
735 the return value of the :meth:`open` of :class:`OpenerDirector`, or ``None``.
750 This method, if defined, will be called by the parent :class:`OpenerDirector`.
761 :class:`OpenerDirector`. Return values should be the same as for
769 errors. It will be called automatically by the :class:`OpenerDirector` getting
801 This method, if defined, will be called by the parent :class:`OpenerDirector`.
813 This method, if defined, will be called by the parent :class:`OpenerDirector`.
858 parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' response.
1154 :meth:`http_error_\<type\>` handler methods, via :meth:`OpenerDirector.error`.
1247 # Create an OpenerDirector with support for Basic HTTP Authentication...
1273 # This time, rather than install the OpenerDirector, we use it directly:
1287 :class:`OpenerDirector` automatically adds a :mailheader:`User-Agent` header to
1298 :meth:`OpenerDirector.open`).