Falcon v1.0.0 Documentationsetting appropriate headers and bodies. All classes are available directly from the falcon package namespace: import falcon class MessageResource(object): def on_get(self, req, resp): # ... 'off') WSGI_CONTENT_HEADERS = ('CONTENT_TYPE', 'CONTENT_LENGTH') # PERF(kgriffs): Avoid an extra namespace lookup when using these functions strptime = datetime.strptime now = datetime.now [docs]class generate a 4xx or 5xx HTTP response. All classes are available directly from the `falcon` package namespace:: import falcon class MessageResource(object): def on_get(self, req, resp):0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v0.3.0.1 DocumentationDEFAULT_MEDIA_TYPE = 'application/json; charset=utf-8' # Hoist classes and functions into the falcon namespace from falcon.version import __version__ # NOQA from falcon.api import API, DEFAULT_MEDIA_TYPE # permissions and # limitations under the License. # Hoist classes and functions into the falcon.testing namespace from falcon.testing.helpers import * # NOQA from falcon.testing.srmock import StartResponseMock0 码力 | 126 页 | 345.09 KB | 1 年前3
Falcon v3.0.0-b1 Documentationits arguments to be picklable (which also implies that the task must be reachable from the global namespace, i.e., an anonymous lambda simply won’t work). Images Resource(s) In the ASGI flavor of Falcon config is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python self._acceptable return result All classes are available directly in the falcon package namespace: WSGI ASGI import falcon class MessageResource: def on_get(self, req, resp): # --0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.0.0 Documentationits arguments to be picklable (which also implies that the task must be reachable from the global namespace, i.e., an anonymous lambda simply won’t work). Images Resource(s) In the ASGI flavor of Falcon config is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python self._acceptable return result All classes are available directly in the falcon package namespace: Note also that any exception (not just instances of HTTPError) can be caught, logged, and otherwise0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentationits arguments to be picklable (which also implies that the task must be reachable from the global namespace, i.e., an anonymous lambda simply won’t work). Images Resource(s) In the ASGI flavor of Falcon config is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python self._acceptable return result All classes are available directly in the falcon package namespace: Note also that any exception (not just instances of HTTPError) can be caught, logged, and otherwise0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationits arguments to be picklable (which also implies that the task must be reachable from the global namespace, i.e., an anonymous lambda simply won’t work). Images Resource(s) In the ASGI flavor of Falcon config is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python self._acceptable return result All classes are available directly in the falcon package namespace: Note also that any exception (not just instances of HTTPError) can be caught, logged, and otherwise0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v1.4.1 Documentationconfig is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python result['acceptable'] = self._acceptable return result All classes are available directly in the falcon package namespace: import falcon class MessageResource(object): def on_get(self, req, resp): # ... raise falcon0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.0.0 Documentation'http_date_to_dt', 'to_query_str', 'get_bound_method', ) # PERF(kgriffs): Avoid superfluous namespace lookups strptime = datetime.datetime.strptime utcnow = datetime.datetime.utcnow # NOTE(kgriffs): ('CONTENT_TYPE', 'CONTENT_LENGTH') _maybe_wrap_wsgi_stream = True # PERF(kgriffs): Avoid an extra namespace lookup when using these functions strptime = datetime.strptime now = datetime.now [docs]class0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v1.4.0 Documentationconfig is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python result['acceptable'] = self._acceptable return result All classes are available directly in the falcon package namespace: import falcon class MessageResource(object): def on_get(self, req, resp): # ... raise falcon0 码力 | 156 页 | 573.94 KB | 1 年前3
Falcon v1.4.1 Documentationconfig is actually loaded, it’s best not to instantiate it at the top level of the config module’s namespace. This avoids any problematic side-effects that may be caused by loading the config whenever Python result['acceptable'] = self._acceptable return result All classes are available directly in the falcon package namespace: import falcon class MessageResource(object): def on_get(self, req, resp): # ... raise falcon0 码力 | 156 页 | 574.46 KB | 1 年前3
共 36 条
- 1
- 2
- 3
- 4













