MCPcopy
hub / github.com/encode/starlette / form

Method form

starlette/requests.py:313–322  ·  starlette/requests.py::Request.form
(
        self,
        *,
        max_files: int | float = 1000,
        max_fields: int | float = 1000,
        max_part_size: int = 1024 * 1024,
    )

Source from the content-addressed store, hash-verified

311 return self._form
312
313 def form(
314 self,
315 *,
316 max_files: int | float = 1000,
317 max_fields: int | float = 1000,
318 max_part_size: int = 1024 * 1024,
319 ) -> AwaitableOrContextManager[FormData]:
320 return AwaitableOrContextManagerWrapper(
321 self._get_form(max_files=max_files, max_fields=max_fields, max_part_size=max_part_size)
322 )
323
324 async def close(self) -> None:
325 if self._form is not None: class="cm"># pragma: no branch

Callers 7

appFunction · 0.95
appFunction · 0.95
multi_items_appFunction · 0.95
app_with_headersFunction · 0.95
app_read_bodyFunction · 0.95
app_monitor_threadFunction · 0.95
error_appFunction · 0.95

Calls 2

_get_formMethod · 0.95

Tested by 7

appFunction · 0.76
appFunction · 0.76
multi_items_appFunction · 0.76
app_with_headersFunction · 0.76
app_read_bodyFunction · 0.76
app_monitor_threadFunction · 0.76
error_appFunction · 0.76