Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « wsgiref.simple_server » Python 3.11.3

Classe « SimpleHandler »

Informations générales

Héritage

builtins.object
    BaseHandler
        SimpleHandler

Définition

class SimpleHandler(BaseHandler):

help(SimpleHandler)

Handler that's just initialized with streams, environment, etc.

    This handler subclass is intended for synchronous HTTP/1.0 origin servers,
    and handles sending the entire response output, given the correct inputs.

    Usage::

        handler = SimpleHandler(
            inp,out,err,env, multithread=False, multiprocess=True
        )
        handler.run(app)

Constructeur(s)

Signature du constructeur Description
__init__(self, stdin, stdout, stderr, environ, multithread=True, multiprocess=False)

Liste des attributs statiques

Nom de l'attribut Valeur
bytes_sent0
error_bodyb'A server error occurred. Please contact the administrator.'
error_headers[('Content-Type', 'text/plain')]
error_status500 Internal Server Error
headersNone
headers_sentFalse
http_version1.0
origin_serverTrue
os_environ{'SHELL': '/bin/bash', 'SESSION_MANAGER': 'local/unix:@/tmp/.ICE-unix/2695,unix/unix:/tmp/.ICE-unix/2695', 'HISTCONTROL': 'ignoredups', 'XDG_MENU_PREFIX': 'gnome-', 'HOSTNAME': 'fedoradom', 'HISTSIZE': '1000', 'DOTNET_ROOT': '/usr/lib64/dotnet', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'LIBOVERLAY_SCROLLBAR': '0', 'XMODIFIERS': '@im=ibus', 'DESKTOP_SESSION': 'gnome-xorg', 'SSH_AGENT_PID': '2634', 'GDK_CORE_DEVICE_EVENTS': '1', 'EDITOR': '/usr/bin/nano', 'PWD': '/home/dominique/Documents/My Developpements/EclipseWorkspace/Ellipse/KooR/_ApiPython', 'XDG_SESSION_DESKTOP': 'gnome-xorg', 'LOGNAME': 'dominique', 'XDG_SESSION_TYPE': 'x11', 'SYSTEMD_EXEC_PID': '2695', 'XAUTHORITY': '/run/user/1000/gdm/Xauthority', 'WINDOWPATH': '2', 'GDM_LANG': 'fr_FR.UTF-8', 'HOME': '/home/dominique', 'USERNAME': 'dominique', 'LANG': 'fr_FR.UTF-8', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'XDG_CURRENT_DESKTOP': 'GNOME', 'VIRTUAL_ENV': '/home/dominique/Documents/My Developpements/EclipseWorkspace/Ellipse/KooR/_ApiPython/venv', 'INVOCATION_ID': '773ba72879ea4fcc97907c7faa04ab8a', 'MANAGERPID': '2393', 'DOTNET_BUNDLE_EXTRACT_BASE_DIR': '/home/dominique/.cache/dotnet_bundle_extract', 'ECLIPSE_WORKSPACE': '/home/dominique/Documents/My Developpements/EclipseWorkspace', 'XDG_SESSION_CLASS': 'user', 'TERM': 'xterm', 'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'USER': 'dominique', 'ECLIPSE_HOME': '/home/dominique/Documents/Applications/Java/eclipse-2022-06', 'DISPLAY': ':0', 'SHLVL': '1', 'OXYGEN_DISABLE_INNER_SHADOWS_HACK': '1', 'QT_IM_MODULE': 'ibus', 'VIRTUAL_ENV_PROMPT': '(venv) ', 'XDG_RUNTIME_DIR': '/run/user/1000', 'PS1': '(venv) [\\u@\\h \\W]\\$ ', 'DEBUGINFOD_URLS': 'https://debuginfod.fedoraproject.org/ ', 'JOURNAL_STREAM': '8:19210', 'GTK3_MODULES': 'xapp-gtk3-module', 'XDG_DATA_DIRS': '/home/dominique/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PATH': '/home/dominique/Documents/My Developpements/EclipseWorkspace/Ellipse/KooR/_ApiPython/venv/bin:/home/dominique/.local/bin:/home/dominique/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/dominique/.composer/vendor/bin:/home/dominique/.dotnet/tools:/home/dominique/.dotnet/tools:/home/dominique/.dotnet/tools', 'GDMSESSION': 'gnome-xorg', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'MAIL': '/var/spool/mail/dominique', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '10561', 'GIO_LAUNCHED_DESKTOP_FILE': '/home/dominique/Bureau/MyEclipse.desktop', 'OLDPWD': '/home/dominique/Documents/My Developpements/EclipseWorkspace/Ellipse/KooR', '_': '/home/dominique/Documents/My Developpements/EclipseWorkspace/Ellipse/KooR/_ApiPython/venv/bin/python'}
resultNone
server_softwareNone
statusNone
traceback_limitNone
wsgi_multiprocessTrue
wsgi_multithreadTrue
wsgi_run_onceFalse
wsgi_version(1, 0)

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
add_cgi_vars(self)
get_stderr(self)
get_stdin(self)

Méthodes héritées de la classe BaseHandler

__init_subclass__, __subclasshook__, cleanup_headers, client_is_modern, close, error_output, finish_content, finish_response, get_scheme, handle_error, log_exception, result_is_file, run, send_headers, send_preamble, sendfile, set_content_length, setup_environ, start_response, write

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__