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

Method put

src/flask/sansio/scaffold.py:312–317  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

310
311 @setupmethod
312 def put(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]:
313 """Shortcut for :meth:`route` with ``methods=["PUT"]``.
314
315 .. versionadded:: 2.0
316 """
317 return self._method_route("PUT", rule, options)
318
319 @setupmethod
320 def delete(self, rule: str, **options: t.Any) -> t.Callable[[T_route], T_route]:

Callers 1

common_testFunction · 0.80

Calls 1

_method_routeMethod · 0.95

Tested by 1

common_testFunction · 0.64