• Home
  • Raw
  • Download

Lines Matching refs:OpenerDirector

74    default installed global :class:`OpenerDirector` uses :class:`UnknownHandler` to
91 Install an :class:`OpenerDirector` instance as the default global opener.
93 otherwise, simply call :meth:`OpenerDirector.open` instead of :func:`urlopen`.
94 The code does not check for a real :class:`OpenerDirector`, and any class with
100 Return an :class:`OpenerDirector` instance, which chains the handlers in the
192 .. class:: OpenerDirector()
194 The :class:`OpenerDirector` class opens URLs via :class:`BaseHandler`\ s chained
449 OpenerDirector Objects
452 :class:`OpenerDirector` instances have the following methods:
455 .. method:: OpenerDirector.add_handler(handler)
477 .. method:: OpenerDirector.open(url[, data][, timeout])
482 method on the currently installed global :class:`OpenerDirector`). The
492 .. method:: OpenerDirector.error(proto[, arg[, ...]])
502 OpenerDirector objects open URLs in three stages:
522 :class:`OpenerDirector` instance's :meth:`~OpenerDirector.open` and
523 :meth:`~OpenerDirector.error` methods.
560 A valid :class:`OpenerDirector`, which can be used to open using a different
570 :class:`OpenerDirector`. It should return a file-like object as described in
571 the return value of the :meth:`open` of :class:`OpenerDirector`, or ``None``.
586 This method, if defined, will be called by the parent :class:`OpenerDirector`.
597 :class:`OpenerDirector`. Return values should be the same as for
605 errors. It will be called automatically by the :class:`OpenerDirector` getting
637 This method, if defined, will be called by the parent :class:`OpenerDirector`.
650 This method, if defined, will be called by the parent :class:`OpenerDirector`.
691 parent :class:`OpenerDirector` when getting an HTTP 'moved permanently' response.
942 :meth:`OpenerDirector.error`. Eventually,
991 # Create an OpenerDirector with support for Basic HTTP Authentication...
1017 # This time, rather than install the OpenerDirector, we use it directly:
1031 :class:`OpenerDirector` automatically adds a :mailheader:`User-Agent` header to
1041 :class:`Request` is passed to :func:`urlopen` (or :meth:`OpenerDirector.open`).