faust.web.base
¶
Base interface for Web server and views.
-
class
faust.web.base.
BlueprintManager
(initial: Iterable[Tuple[str, Union[_T, str]]] = None) → None[source]¶
-
class
faust.web.base.
Web
(app: faust.types.app.AppT, **kwargs) → None[source]¶ Web server and HTTP interface.
-
default_blueprints
= [('/graph', 'faust.web.apps.graph:blueprint'), ('', 'faust.web.apps.stats:blueprint'), ('/router', 'faust.web.apps.router:blueprint'), ('/table', 'faust.web.apps.tables.blueprint')]¶
-
content_separator
= b'\r\n\r\n'¶
-
header_separator
= b'\r\n'¶
-
header_key_value_separator
= b': '¶
-
text
(value: str, *, content_type: str = None, status: int = 200) → faust.web.base.Response[source]¶ Return type: Response
-
bytes
(value: bytes, *, content_type: str = None, status: int = 200) → faust.web.base.Response[source]¶ Return type: Response
-
add_view
(view_cls: Type[faust.types.web.View], *, prefix: str = '') → faust.types.web.View[source]¶ Return type: View
-
url_for
(view_name: str, **kwargs) → str[source]¶ Get URL by view name
If the provided view name has associated URL parameters, those need to be passed in as kwargs, or a
TypeError
will be raised.Return type: str
-
logger
= <Logger faust.web.base (WARNING)>¶
-
-
class
faust.web.base.
Request
(*args, **kwargs)[source]¶ HTTP Request.
-
match_info
¶ Return type: MutableMapping
[str
,str
]
-
query
¶ Return type: MutableMapping
[str
,str
]
-