cheroot.ssl package

Module contents

Implementation of the SSL adapter base interface.

class cheroot.ssl.Adapter(certificate, private_key, certificate_chain=None, ciphers=None)

Bases: object

Base class for SSL driver library adapters.

Required methods:

  • wrap(sock) -> (wrapped socket, ssl environ dict)

  • makefile(sock, mode='r', bufsize=DEFAULT_BUFFER_SIZE) -> socket file object

_abc_impl = <_abc._abc_data object>
abstract bind(sock)

Wrap and return the given socket.

abstract get_environ()

Return WSGI environ entries to be merged into each request.

abstract makefile(sock, mode='r', bufsize=- 1)

Return socket file object.

abstract wrap(sock)

Wrap and return the given socket, plus WSGI environ entries.