Falcon v3.0.0 Documentationprocess_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentationprocess_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationprocess_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 Documentationprocess_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v1.0.0 DocumentationWhen catching exceptions, name the variable ex. Use whitespace to separate logical blocks of code and to improve readability. Do not use single-character variable names except for trivial indexes when process_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 application = falcon.API() That creates your WSGI application and aliases it as api. You can use any variable names you like, but we’ll use application since that is what Gunicorn expects it to be called, by0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v3.1.1-b3 Documentationdef process_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 if req.content_length application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b1 Documentationdef process_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 if req.content_length application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-a Documentationdef process_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 if req.content_length application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 378 页 | 1.29 MB | 1 年前3
Falcon v3.1.0 Documentationdef process_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 if req.content_length application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1 Documentationdef process_request(self, req, resp): # req.stream corresponds to the WSGI wsgi.input environ variable, # and allows you to read bytes from the request body. # # See also: PEP 3333 if req.content_length application = falcon.App() This code creates your WSGI application and aliases it as app. You can use any variable names you like, but we’ll use application since that is what Gunicorn, by default, expects it to this, modify app.py to add the ability to configure the image storage directory with an environment variable: import os import falcon from .images import ImageStore, Resource def create_app(image_store):0 码力 | 378 页 | 1.29 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













