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

Method post

starlette/testclient.py:539–568  ·  view source on GitHub ↗
(  # type: ignore[override]
        self,
        url: httpx._types.URLTypes,
        *,
        content: httpx._types.RequestContent | None = None,
        data: _RequestData | None = None,
        files: httpx._types.RequestFiles | None = None,
        json: Any = None,
        params: httpx._types.QueryParamTypes | None = None,
        headers: httpx._types.HeaderTypes | None = None,
        cookies: httpx._types.CookieTypes | None = None,
        auth: httpx._types.AuthTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
        follow_redirects: bool | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
        timeout: httpx._types.TimeoutTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
        extensions: dict[str, Any] | None = None,
    )

Source from the content-addressed store, hash-verified

537 )
538
539 def post( # type: ignore[override]
540 self,
541 url: httpx._types.URLTypes,
542 *,
543 content: httpx._types.RequestContent | None = None,
544 data: _RequestData | None = None,
545 files: httpx._types.RequestFiles | None = None,
546 json: Any = None,
547 params: httpx._types.QueryParamTypes | None = None,
548 headers: httpx._types.HeaderTypes | None = None,
549 cookies: httpx._types.CookieTypes | None = None,
550 auth: httpx._types.AuthTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
551 follow_redirects: bool | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
552 timeout: httpx._types.TimeoutTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
553 extensions: dict[str, Any] | None = None,
554 ) -> httpx.Response:
555 return super().post(
556 url,
557 content=content,
558 data=data,
559 files=files,
560 json=json,
561 params=params,
562 headers=headers,
563 cookies=cookies,
564 auth=auth,
565 follow_redirects=follow_redirects,
566 timeout=timeout,
567 extensions=extensions,
568 )
569
570 def put( # type: ignore[override]
571 self,

Calls

no outgoing calls

Tested by

no test coverage detected