MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / request

Function request

tests/utils.py:230–237  ·  view source on GitHub ↗
(*, extra_headers: Headers | None = None)

Source from the content-addressed store, hash-verified

228 client = client.with_options(http_client=httpx2.Client(transport=body.transport()))
229
230 def request(*, extra_headers: Headers | None = None) -> Stream[object]:
231 return client.get(
232 "/stream",
233 cast_to=object,
234 options=make_request_options(extra_headers=extra_headers),
235 stream=True,
236 stream_cls=stream_cls,
237 )
238
239 return request
240

Callers 2

streamFunction · 0.85
async_streamFunction · 0.85

Calls 2

make_request_optionsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected