MCPcopy
hub / github.com/pallets/flask / _method_route

Method _method_route

src/flask/sansio/scaffold.py:284–293  ·  view source on GitHub ↗
(
        self,
        method: str,
        rule: str,
        options: dict[str, t.Any],
    )

Source from the content-addressed store, hash-verified

282 return None
283
284 def _method_route(
285 self,
286 method: str,
287 rule: str,
288 options: dict[str, t.Any],
289 ) -> t.Callable[[T_route], T_route]:
290 if "methods" in options:
291 raise TypeError("Use the 'route' decorator to use the 'methods' argument.")
292
293 return self.route(rule, methods=[method], **options)
294
295 @setupmethod
296 def get(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]:

Callers 5

getMethod · 0.95
postMethod · 0.95
putMethod · 0.95
deleteMethod · 0.95
patchMethod · 0.95

Calls 1

routeMethod · 0.95

Tested by

no test coverage detected