gws.base.web.manager
¶
Source code: gws.base.web.manager
Module Contents¶
- class gws.base.web.manager.Config(*args, **kwargs)¶
Bases:
gws.Config
Web server configuration
- sites: list[gws.base.web.site.Config] | None¶
configured sites
- ssl: gws.base.web.site.SSLConfig | None¶
ssl configuration
- class gws.base.web.manager.Object¶
Bases:
gws.WebManager
Web manager.
- configure()¶
Configuration hook.
- enter_middleware(req: gws.WebRequester)¶
Begin middleware processing.
- Parameters:
req – Requester object.
- Returns:
A Responder object or
None
.
- exit_middleware(req: gws.WebRequester, res: gws.WebResponder)¶
Finish middleware processing.
- Parameters:
req – Requester object.
res – Current responder object.
- site_from_environ(environ)¶
Returns a site object for the given request environment.
- Parameters:
environ – WSGI environment.
- Returns:
A Site object.