MCPcopy
hub / github.com/encode/httpx / set_cookie_header

Method set_cookie_header

httpx/_models.py:1110–1115  ·  view source on GitHub ↗

Sets an appropriate 'Cookie:' HTTP header on the `Request`.

(self, request: Request)

Source from the content-addressed store, hash-verified

1108 self.jar.extract_cookies(urllib_response, urllib_request) # type: ignore
1109
1110 def set_cookie_header(self, request: Request) -> None:
1111 """
1112 Sets an appropriate 'Cookie:' HTTP header on the `Request`.
1113 """
1114 urllib_request = self._CookieCompatRequest(request)
1115 self.jar.add_cookie_header(urllib_request)
1116
1117 def set(self, name: str, value: str, domain: str = "", path: str = "/") -> None:
1118 """

Callers 2

auth_flowMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected