Falcon v1.0.0 Documentationuse single-character variable names except for trivial indexes when looping, or in mathematical expressions implementing well-known formulae. Heavily document code that is especially complex or clever! example: def on_post(self, req, resp): pass In addition, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after on_put(self, req, resp, name): pass Individual path segments may contain one or more field expressions. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} Parameters: uri_template0 码力 | 249 页 | 406.22 KB | 1 年前3
Falcon v1.0.0 Documentationexample: def on_post(self, req, resp): pass In addition, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after on_put(self, req, resp, name): pass Individual path segments may contain one or more field expressions: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} Parameters: uri_template (str) flexible templating syntax used in the default router. Only simple paths with bracketed field expressions are recognized. For example: / /books /books/{isbn} /books/{isbn}/characters /books/{isbn}/characters/{name}0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v1.0.0 Documentationexample: def on_post(self, req, resp): pass In addition, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after def on_put(self, req, resp, name): pass Individual path segments may contain one or more field expressions. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} Parameters • uri_template flexible templating syntax used in the default router. Only simple paths with bracketed field expressions are recognized. For example: / /books /books/{isbn} /books/{isbn}/characters /books/{isbn}/characters/{name}0 码力 | 87 页 | 348.15 KB | 1 年前3
Falcon v1.3.0 Documentationconverters Represents the collection of named converters that may be referenced in URI template field expressions. Adding additional converters is simply a matter of mapping an identifier to a converter class: In addition to the standard req and resp parameters, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after they must be valid Python identifiers. Individual path segments may contain one or more field expressions, and fields need not span the entire path segment. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v1.3.0 Documentationconverters Represents the collection of named converters that may be referenced in URI template field expressions. Adding additional converters is simply a matter of mapping an identifier to a converter class: In addition to the standard req and resp parameters, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after they must be valid Python identifiers. Individual path segments may contain one or more field expressions, and fields need not span the entire path segment. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.1.0 Documentationexample: def on_post(self, req, resp): pass In addition, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after def on_put(self, req, resp, name): pass Individual path segments may contain one or more field expressions: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} Parameters • uri_template (str) flexible templating syntax used in the default router. Only simple paths with bracketed field expressions are recognized. For example: / /books /books/{isbn} /books/{isbn}/characters /books/{isbn}/characters/{name}0 码力 | 113 页 | 426.53 KB | 1 年前3
Falcon v1.4.1 Documentationconverters Represents the collection of named converters that may be referenced in URI template field expressions. Adding additional converters is simply a matter of mapping an identifier to a converter class: In addition to the standard req and resp parameters, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after they must be valid Python identifiers. Individual path segments may contain one or more field expressions, and fields need not span the entire path segment. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 Documentationconverters Represents the collection of named converters that may be referenced in URI template field expressions. Adding additional converters is simply a matter of mapping an identifier to a converter class: In addition to the standard req and resp parameters, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after they must be valid Python identifiers. Individual path segments may contain one or more field expressions, and fields need not span the entire path segment. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}0 码力 | 156 页 | 573.94 KB | 1 年前3
Falcon v1.4.1 Documentationconverters Represents the collection of named converters that may be referenced in URI template field expressions. Adding additional converters is simply a matter of mapping an identifier to a converter class: In addition to the standard req and resp parameters, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after they must be valid Python identifiers. Individual path segments may contain one or more field expressions, and fields need not span the entire path segment. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}0 码力 | 156 页 | 574.46 KB | 1 年前3
Falcon v0.3.0.1 Documentationuse single-character variable names except for trivial indexes when looping, or in mathematical expressions implementing well-known formulae. Heavily document code that is especially complex or clever! example: def on_post(self, req, resp): pass In addition, if the route’s template contains field expressions, any responder that desires to receive requests for that route must accept arguments named after on_put(self, req, resp, name): pass Individual path segments may contain one or more field expressions. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} Parameters: uri_template0 码力 | 126 页 | 345.09 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













