Falcon v3.0.0-b2 Documentationlittle as possible while remaining highly effective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses Full Unicode Exception Handling Replacing the Default Handlers Supported Handler Types Custom Handler Type Handlers Mapping Media Type Constants Multipart Forms Body Part Type Parsing Options Parsing Errors Redirection to the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.1 DocumentationException Handling Replacing the Default Handlers Supported Handler Types Custom Handler Type Handlers Mapping Media Type Constants Multipart Forms Body Part Type Parsing Options Parsing Errors Redirection to the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware)0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0 DocumentationException Handling Replacing the Default Handlers Supported Handler Types Custom Handler Type Handlers Mapping Media Type Constants Multipart Forms Body Part Type Parsing Options Parsing Errors Redirection to the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware)0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.0-b1 Documentationlittle as possible while remaining highly effective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses Full Unicode Exception Handling Replacing the Default Handlers Supported Handler Types Custom Handler Type Handlers Mapping Media Type Constants Multipart Forms Body Part Type Parsing Options Parsing Errors Redirection to the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.0.0-b2 Documentationpossible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full to the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware) Now0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0-b1 Documentationpossible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full to the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware) Now0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.0.0 Documentationto the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware) Now FunkyResource: def on_get(self, req, resp): resp.set_header('X-Funky-Header', 'test') resp.media = {'message': 'Hello'} app = falcon.App() app.add_route('/test', FunkyResource()) app = CustomHeadersMiddleware(0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationto the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware) Now FunkyResource: def on_get(self, req, resp): resp.set_header('X-Funky-Header', 'test') resp.media = {'message': 'Hello'} app = falcon.App() app.add_route('/test', FunkyResource()) app = CustomHeadersMiddleware(0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.1.0 Documentationto the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware) Now FunkyResource: def on_get(self, req, resp): resp.set_header('X-Funky-Header', 'test') resp.media = {'message': 'Hello'} app = falcon.App() app.add_route('/test', FunkyResource()) app = CustomHeadersMiddleware(0 码力 | 362 页 | 1.29 MB | 1 年前3
Falcon v3.1.1-b3 Documentationto the list if you like. Next, let’s create a hook that will run before each request to post a message. Add this method below the definition of ALLOWED_IMAGE_TYPES: def validate_image_type(req, resp to an entire resource by simply decorating the class: @falcon.before(extract_project_id) class Message: pass Similar logic can be applied globally with middleware. (See also: falcon.middleware) Now FunkyResource: def on_get(self, req, resp): resp.set_header('X-Funky-Header', 'test') resp.media = {'message': 'Hello'} app = falcon.App() app.add_route('/test', FunkyResource()) app = CustomHeadersMiddleware(0 码力 | 378 页 | 1.29 MB | 1 年前3
共 75 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













