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

Function request

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

Source from the content-addressed store, hash-verified

246 client = client.with_options(http_client=httpx2.Client(transport=body.transport()))
247
248 def request(*, extra_headers: Headers | None = None) -> Stream[object]:
249 return client.get(
250 "/stream",
251 cast_to=object,
252 options=make_request_options(extra_headers=extra_headers),
253 stream=True,
254 stream_cls=stream_cls,
255 )
256
257 return request
258

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