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

Method get

src/flask/sansio/scaffold.py:296–301  ·  view source on GitHub ↗

Shortcut for :meth:`route` with ``methods=["GET"]``. .. versionadded:: 2.0

(self, rule: str, **options: t.Any)

Source from the content-addressed store, hash-verified

294
295 @setupmethod
296 def get(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]:
297 """Shortcut for :meth:`route` with ``methods=["GET"]``.
298
299 .. versionadded:: 2.0
300 """
301 return self._method_route("GET", rule, options)
302
303 @setupmethod
304 def post(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]:

Callers 4

add_url_ruleMethod · 0.45
_find_error_handlerMethod · 0.45
__init__Method · 0.45
registerMethod · 0.45

Calls 1

_method_routeMethod · 0.95

Tested by

no test coverage detected