Falcon Snippets
Snippets for the Python Framework Falcon.
Resources Snippets
Description |
Prefix |
Example |
Resource Template |
fResource |
Falcon Resource Template |
Get Responder |
fOnGetResponder |
def on_get |
Get Suffix Responder |
fOnGetWithSuffixResponder |
def on_get_{suffix} |
Head Responder |
fOnHeadResponder |
def on_head |
Head Suffix Responder |
fOnHeadWithSuffixResponder |
def on_head_{suffix} |
Post Responder |
fOnPostResponder |
def on_post |
Post Suffix Responder |
fOnPostWithSuffixResponder |
def on_post_{suffix} |
Put Responder |
fOnPutResponder |
def on_put |
Put Suffix Responder |
fOnPutWithSuffixResponder |
def on_put_{suffix} |
Delete Responder |
fOnDeleteResponder |
def on_delete |
Delete Suffix Responder |
fOnDeleteWithSuffixResponder |
def on_delete_{suffix} |
Connect Responder |
fOnConnectResponder |
def on_connect |
Connect Suffix Responder |
fOnConnectWithSuffixResponder |
def on_connect_{suffix} |
Options Responder |
fOnOptionsResponder |
def on_options |
Options Suffix Responder |
fOnOptionsWithSuffixResponder |
def on_options_{suffix} |
Trace Responder |
fOnTraceResponder |
def on_trace |
Trace Suffix Responder |
fOnTraceWithSuffixResponder |
def on_trace_{suffix} |
Patch Responder |
fOnPatchResponder |
def on_patch |
Patch Suffix Responder |
fOnPatchWithSuffixResponder |
def on_patch_{suffix} |
Routing Snippets
Description |
Prefix |
Example |
New Route |
fNewRoute |
Add Resource Ref and Route |
Add Route |
fAddRoute |
app.add_route |
Middleware Snippets
Description |
Prefix |
Example |
Middleware Template |
fMiddleware |
Falcon Middleware Template |
Process Request |
fProcessRequest |
def process_resource |
Process Resource |
fProcessResource |
def process_request |
Process Response |
fProcessResponse |
def process_response |
Example Snippets
Description |
Prefix |
Example |
Quick Start Example |
fExampleApp |
Quick Start Example |
| |