MCPcopy Create free account
hub / github.com/authlib/authlib / build_request

Function build_request

authlib/integrations/httpx_client/utils.py:34–46  ·  view source on GitHub ↗

Make sure that all the data from initial request is passed to the updated object.

(url, headers, body, initial_request: Request)

Source from the content-addressed store, hash-verified

32
33
34def build_request(url, headers, body, initial_request: Request) -> Request:
35 """Make sure that all the data from initial request is passed to the updated object."""
36 updated_request = Request(
37 method=initial_request.method,
38 url=url,
39 headers=headers,
40 content=body,
41 )
42
43 if hasattr(initial_request, "extensions"):
44 updated_request.extensions = initial_request.extensions
45
46 return updated_request

Callers 3

auth_flowMethod · 0.85
auth_flowMethod · 0.85
auth_flowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected