Falcon v1.1.0 DocumentationConvert to an instance of falcon.HTTPError raise falcon.HTTPError(falcon.HTTP_792) add_route(uri_template, resource, *args, **kwargs) Associates a templatized URI path with a resource. Note: The following expressions: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} ## Parameters • uri_template(str) – A templated URI. Care must be taken to ensure the template does not mask any sink patterns str – Query string portion of the request URL, without the preceding "?" character. ## uri_template str – The template for the route that was matched for this request. May be None if the request0 码力 | 113 页 | 426.53 KB | 2 年前3
Falcon v1.0.0 Documentationan instance of falcon.HTTPError raise falcon.HTTPError(falcon.HTTP_792) add_route(uri_template, resource, *args, **kwargs)[source] Associates a templatized URI path with a resource. ## Note or more field expressions: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} • uri_template (str) – A templated URI. Care must be taken to ensure the template does not mask any sink patterns query_string str – Query string portion of the request URL, without the preceding ‘?’ character. ## uri_template str – The template for the route that was matched for this request. May be None if the request0 码力 | 312 页 | 368.58 KB | 2 年前3
Falcon v1.0.0 Documentationmodify resp manually in order to communicate information about the issue to the client. add_route(uri_template, resource, *args, **kwargs)[source] Associates a templatized URI path with a resource. A resource expressions. For example: /repos/{org}/{repo}/compare/{usr0}:{branch0}...{usr1}:{branch1} • uri_template (str) – A templated URI. Care must be taken to ensure the template does not mask any sink patterns FancyRouter(object): def add_route(self, uri_template, method_map, resource): """Adds a route between URI path template and resource. Args: uri_template (str): The URI template to add0 码力 | 249 页 | 406.22 KB | 2 年前3
Falcon v3.0.0-b1 Documentationhad been appended to the original middleware list passed to the class initializer. ## add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming behavior, pass a custom router object to the App initializer. (See also: Routing) ## Parameters: • uri_template (str [https://docs.python.org/3/library/stdtypes.html#str] A templated URI. Care must be taken type, the handler must be explicitly specified using the handler keyword argument. add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming0 码力 | 1028 页 | 725.86 KB | 2 年前3
Falcon v3.0.0 Documentationhad been appended to the original middleware list passed to the class initializer. ## add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming behavior, pass a custom router object to the App initializer. (See also: Routing) ## Parameters: • uri_template (str [https://docs.python.org/3/library/stdtypes.html#str] A templated URI. Care must be taken type, the handler must be explicitly specified using the handler keyword argument. add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming0 码力 | 1055 页 | 739.30 KB | 2 年前3
Falcon v3.0.0-b2 Documentationhad been appended to the original middleware list passed to the class initializer. ## add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming behavior, pass a custom router object to the App initializer. (See also: Routing) ## Parameters: • uri_template (str [https://docs.python.org/3/library/stdtypes.html#str] A templated URI. Care must be taken type, the handler must be explicitly specified using the handler keyword argument. add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming0 码力 | 1041 页 | 730.21 KB | 2 年前3
Falcon v3.0.1 Documentationhad been appended to the original middleware list passed to the class initializer. ## add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming behavior, pass a custom router object to the App initializer. (See also: Routing) ## Parameters: • uri_template (str [https://docs.python.org/3/library/stdtypes.html#str] A templated URI. Care must be taken type, the handler must be explicitly specified using the handler keyword argument. add_route(uri_template, resource, **kwargs)[source] Associate a templated URI path with a resource. Falcon routes incoming0 码力 | 1058 页 | 741.59 KB | 2 年前3
Falcon v1.2.0 DocumentationCustomException(CustomBaseException): @staticmethod def handle(ex, req, resp, params): add_route(uri_template, resource, *args, **kwargs) Associates a templatized URI path with a resource. ## Note The names correspond to argument names in responder methods, they must be valid Python identifiers. • uri_template (str) – A templated URI. Care must be taken to ensure the template does not mask any sink patterns query_string str – Query string portion of the request URL, without the preceding ‘?’ character. ## uri_template str – The template for the route that was matched for this request. May be None if the request0 码力 | 177 页 | 252.56 KB | 2 年前3
Falcon v1.2.0 DocumentationConvert to an instance of falcon.HTTPError raise falcon.HTTPError(falcon.HTTP_792) add_route(uri_template, resource, *args, **kwargs) Associates a templated URI path with a resource. Note: The following argument names in responder methods, they must be valid Python identifiers. ## Parameters • uri_template(str) – A templated URI. Care must be taken to ensure the template does not mask any sink patterns query_string str – Query string portion of the request URL, without the preceding “?” character. ## uri_template str – The template for the route that was matched for this request. May be None if the request0 码力 | 134 页 | 498.46 KB | 2 年前3
Falcon v3.1.1-b3 Documentationhad been appended to the original middleware list passed to the class initializer. ## add_route(uri_template, resource, **kwargs) Associate a templatized URI path with a resource. Falcon routes incoming behavior, pass a custom router object to the App initializer. (See also: Routing) ## Parameters • uri_template (str) – A templated URI. Care must be taken to ensure the template does not mask any sink patterns are registered. (See also: add_sink()) Warning: If strip_url_path_trailing_slash is enabled, uri_template should be provided without a trailing slash. (See also: How does Falcon handle a trailing slash0 码力 | 378 页 | 1.29 MB | 2 年前3
共 40 条
- 1
- 2
- 3
- 4













