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.handlers » Python 3.11.3

Classe « BaseHandler »

Informations générales

Héritage

builtins.object
    BaseHandler

Définition

class BaseHandler(builtins.object):

help(BaseHandler)

Manage the invocation of a WSGI application

Constructeur(s)

Signature du constructeur Description
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

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) Override in subclass to insert CGI variables in 'self.environ' [extrait de add_cgi_vars.__doc__]
cleanup_headers(self) Make any necessary header changes or defaults [extrait de cleanup_headers.__doc__]
client_is_modern(self) True if client can accept status and headers [extrait de client_is_modern.__doc__]
close(self) Close the iterable (if needed) and reset all instance vars [extrait de close.__doc__]
error_output(self, environ, start_response) WSGI mini-app to create error output [extrait de error_output.__doc__]
finish_content(self) Ensure headers and content have both been sent [extrait de finish_content.__doc__]
finish_response(self) Send any iterable data, then close self and the iterable [extrait de finish_response.__doc__]
get_scheme(self) Return the URL scheme being used [extrait de get_scheme.__doc__]
get_stderr(self) Override in subclass to return suitable 'wsgi.errors' [extrait de get_stderr.__doc__]
get_stdin(self) Override in subclass to return suitable 'wsgi.input' [extrait de get_stdin.__doc__]
handle_error(self) Log current error, and send error output to client if possible [extrait de handle_error.__doc__]
log_exception(self, exc_info) Log the 'exc_info' tuple in the server log [extrait de log_exception.__doc__]
result_is_file(self) True if 'self.result' is an instance of 'self.wsgi_file_wrapper' [extrait de result_is_file.__doc__]
run(self, application) Invoke the application [extrait de run.__doc__]
send_headers(self) Transmit headers to the client, via self._write() [extrait de send_headers.__doc__]
send_preamble(self) Transmit version/status/date/server, via self._write() [extrait de send_preamble.__doc__]
sendfile(self) Platform-specific file transmission [extrait de sendfile.__doc__]
set_content_length(self) Compute Content-Length or switch to chunked encoding if possible [extrait de set_content_length.__doc__]
setup_environ(self) Set up the environment for one request [extrait de setup_environ.__doc__]
start_response(self, status, headers, exc_info=None) 'start_response()' callable as specified by PEP 3333 [extrait de start_response.__doc__]
write(self, data) 'write()' callable as specified by PEP 3333 [extrait de write.__doc__]

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__