nameko.web.server¶
Attributes¶
Classes¶
This class is used to handle the HTTP requests that arrive |
|
一个 SharedExtension,用于包装 WSGI 接口以处理 HTTP 请求。 |
|
Functions¶
|
Module Contents¶
- class nameko.web.server.HttpOnlyProtocol(conn_state, server)[源代码]¶
Bases:
eventlet.wsgi.HttpProtocol
This class is used to handle the HTTP requests that arrive at the server.
The handler will parse the request and the headers, then call a method specific to the request type.
- 参数:
conn_state -- The given connection status.
server -- The server accessible by the request handler.
- class nameko.web.server.WebServer[源代码]¶
Bases:
nameko.extensions.ProviderCollector
,nameko.extensions.SharedExtension
一个 SharedExtension,用于包装 WSGI 接口以处理 HTTP 请求。
WebServer 可以被子类化,通过重写 get_wsgi_server 和 get_wsgi_app 方法来添加额外的 WSGI 功能。