Permalink
Browse files
fix docs on IWSGIProtocol.get_wsgi_app_settings
- Loading branch information...
Showing
with
3 additions
and
8 deletions.
-
+3
−8
src/plaster/protocols.py
|
|
@@ -35,15 +35,10 @@ def app(environ, start_response): |
|
|
@abc.abstractmethod
|
|
|
def get_wsgi_app_settings(self, name=None, defaults=None):
|
|
|
"""
|
|
|
Create a WSGI application object.
|
|
|
|
|
|
An example application object may be:
|
|
|
|
|
|
.. code-block:: python
|
|
|
Return the settings for a WSGI application.
|
|
|
|
|
|
def app(environ, start_response):
|
|
|
start_response(b'200 OK', [(b'Content-Type', b'text/plain')])
|
|
|
yield [b'hello world\\n']
|
|
|
This is similar to :meth:`plaster.ILoader.get_settings` for a
|
|
|
WSGI application.
|
|
|
|
|
|
:param name: The name of the application referenced in the config.
|
|
|
If ``None`` then it should default to the
|
|
|
|
0 comments on commit
6be2117