bialy-dataset / coderank /dumps /project_search-model-requests.jsonl
paintedwolf-ai's picture
Release open1-b5-e4-bialy
24918f7 verified
Raw History Blame Contribute Delete
254 kB
{"site":"project_search","repo":"requests","task":"initialize the urllib3 pool manager with connection count max size and block setting","query":"init pool manager","file":"src/requests/adapters.py","symbol":"init_poolmanager","line":239,"lang":"en","candidates":[{"text":"File: docs/user/advanced.rst\nLine 1027: def init_poolmanager(self, connections, maxsize, block=False):","file":"docs/user/advanced.rst","line":1027,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 221: self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block)","file":"src/requests/adapters.py","line":221,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/adapters.py\nLine 235: self.init_poolmanager(","file":"src/requests/adapters.py","line":235,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 239: def init_poolmanager(","file":"src/requests/adapters.py","line":239,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 246: \"\"\"Initializes a urllib3 PoolManager.","file":"src/requests/adapters.py","line":246,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 255: :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager.","file":"src/requests/adapters.py","line":255,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"当访问URL时,如何正确判断是否应该绕过代理?特别是需要处理`no_proxy`环境变量或参数,并正确解析主机名以匹配排除列表。","query":"proxy bypass no_proxy","file":"src/requests/utils.py","symbol":"should_bypass_proxies","line":810,"lang":"zh","candidates":[{"text":"File: src/requests/utils.py\nLine 810: def should_bypass_proxies(url: str, no_proxy: str | None) -> bool:","file":"src/requests/utils.py","line":810,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/utils.py\nLine 879: if should_bypass_proxies(url, no_proxy=no_proxy):","file":"src/requests/utils.py","line":879,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 932: if trust_env and not should_bypass_proxies(url, no_proxy=no_proxy):","file":"src/requests/utils.py","line":932,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 263: def test_bypass_no_proxy_keyword(self, url):","file":"tests/test_utils.py","line":263,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 277: def test_not_bypass_no_proxy_keyword(self, url, monkeypatch):","file":"tests/test_utils.py","line":277,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 771: assert should_bypass_proxies(url, no_proxy=None) == expected","file":"tests/test_utils.py","line":771,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 792: should_bypass_proxies(url, no_proxy=None)","file":"tests/test_utils.py","line":792,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 838: def test_should_bypass_proxies_no_proxy(url, expected, monkeypatch):","file":"tests/test_utils.py","line":838,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 840: can be bypassed or not using the 'no_proxy' argument","file":"tests/test_utils.py","line":840,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 844: assert should_bypass_proxies(url, no_proxy=no_proxy) == expected","file":"tests/test_utils.py","line":844,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 861: def test_should_bypass_proxies_no_proxy_domain_boundary(url, expected):","file":"tests/test_utils.py","line":861,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 867: assert should_bypass_proxies(url, no_proxy=no_proxy) == expected","file":"tests/test_utils.py","line":867,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"trouve la méthode qui transforme l'objet en une requête prête pour l'envoi","query":"prepare request","file":"src/requests/models.py","symbol":"prepare","line":360,"lang":"fr","candidates":[{"text":"File: HISTORY.md\nLine 878: `PreparedRequest` objects.","file":"HISTORY.md","line":878,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1038: - When using the PreparedRequest flow, requests will now correctly","file":"HISTORY.md","line":1038,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1040: - When using the PreparedRequest flow, requests will now correctly","file":"HISTORY.md","line":1040,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1106: - Simplify the PreparedRequest.prepare API: We no longer require the","file":"HISTORY.md","line":1106,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1115: - Copy a PreparedRequest's CookieJar more reliably when it is not an","file":"HISTORY.md","line":1115,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1299: - Allow copying of PreparedRequests without headers/cookies.","file":"HISTORY.md","line":1299,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1421: - Added new method to `PreparedRequest` objects:","file":"HISTORY.md","line":1421,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1422: `PreparedRequest.copy()`.","file":"HISTORY.md","line":1422,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1426: - Added new method to `Session` objects: `Session.prepare_request()`.","file":"HISTORY.md","line":1426,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1427: This method updates and prepares a `Request` object, and returns the","file":"HISTORY.md","line":1427,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1428: corresponding `PreparedRequest` object.","file":"HISTORY.md","line":1428,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 64: .. autoclass:: requests.PreparedRequest","file":"docs/api.rst","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 119: .. _prepared-requests:","file":"docs/user/advanced.rst","line":119,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 121: Prepared Requests","file":"docs/user/advanced.rst","line":121,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 126: ``PreparedRequest`` that was used. In some cases you may wish to do some extra","file":"docs/user/advanced.rst","line":126,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 154: prepare it immediately and modify the ``PreparedRequest`` object. You then","file":"docs/user/advanced.rst","line":154,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 162: :class:`PreparedRequest <requests.PreparedRequest>` with that state","file":"docs/user/advanced.rst","line":162,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 163: applied, replace the call to :meth:`Request.prepare()","file":"docs/user/advanced.rst","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 164: <requests.Request.prepare>` with a call to","file":"docs/user/advanced.rst","line":164,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 165: :meth:`Session.prepare_request() <requests.Session.prepare_request>`, like this::","file":"docs/user/advanced.rst","line":165,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 172: prepped = s.prepare_request(req)","file":"docs/user/advanced.rst","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 190: When you are using the prepared request flow, keep in mind that it does not take into account the environment.","file":"docs/user/advanced.rst","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 201: prepped = s.prepare_request(req)","file":"docs/user/advanced.rst","line":201,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/__init__.py\nLine 184: from .models import PreparedRequest, Request, Response","file":"src/requests/__init__.py","line":184,"lexical":0.5,"target":false},{"text":"File: src/requests/__init__.py\nLine 193: \"PreparedRequest\",","file":"src/requests/__init__.py","line":193,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 47: def is_prepared(request: PreparedRequest) -> TypeIs[_ValidatedRequest]:","file":"src/requests/_types.py","line":47,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 48: \"\"\"Verify a PreparedRequest has been fully prepared.\"\"\"","file":"src/requests/_types.py","line":48,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 66: from .models import PreparedRequest, Response","file":"src/requests/_types.py","line":66,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 69: class _ValidatedRequest(PreparedRequest):","file":"src/requests/_types.py","line":69,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 70: \"\"\"Subtype asserting a PreparedRequest has been fully prepared before calling.","file":"src/requests/_types.py","line":70,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 137: tuple[str, str] | AuthBase | Callable[[PreparedRequest], PreparedRequest] | None","file":"src/requests/_types.py","line":137,"lexical":0.5,"target":false},{"text":"File: src/requests/adapters.py\nLine 75: from .models import PreparedRequest","file":"src/requests/adapters.py","line":75,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"리다이렉트 발생 시 요청 본문의 읽기 위치를 처음으로 되돌리는 과정에서 오류가 발생하거나, 본문을 다시 읽을 수 없는 상태가 되는 버그를 조사해 주세요.","query":"rewind request body","file":"src/requests/utils.py","symbol":"rewind_body","line":1139,"lang":"ko","candidates":[{"text":"File: src/requests/exceptions.py\nLine 146: class UnrewindableBodyError(RequestException):","file":"src/requests/exceptions.py","line":146,"lexical":0.55,"target":false},{"text":"File: src/requests/exceptions.py\nLine 147: \"\"\"Requests encountered an error when trying to rewind a body.\"\"\"","file":"src/requests/exceptions.py","line":147,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 278: rewindable = prepared_request._body_position is not None and (","file":"src/requests/sessions.py","line":278,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 284: rewind_body(prepared_request)","file":"src/requests/sessions.py","line":284,"lexical":0.55,"target":false},{"text":"File: src/requests/utils.py\nLine 1139: def rewind_body(prepared_request: PreparedRequest) -> None:","file":"src/requests/utils.py","line":1139,"lexical":0.55,"target":true},{"text":"File: src/requests/utils.py\nLine 1152: \"An error occurred when rewinding request body for redirect.\"","file":"src/requests/utils.py","line":1152,"lexical":0.55,"target":false},{"text":"File: src/requests/utils.py\nLine 1155: raise UnrewindableBodyError(\"Unable to rewind request body for redirect.\")","file":"src/requests/utils.py","line":1155,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 2022: requests.utils.rewind_body(prep)","file":"tests/test_requests.py","line":2022,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2036: requests.utils.rewind_body(prep)","file":"tests/test_requests.py","line":2036,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2055: requests.utils.rewind_body(prep)","file":"tests/test_requests.py","line":2055,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2057: assert \"Unable to rewind request body\" in str(e)","file":"tests/test_requests.py","line":2057,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2078: requests.utils.rewind_body(prep)","file":"tests/test_requests.py","line":2078,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2080: assert \"error occurred when rewinding request body\" in str(e)","file":"tests/test_requests.py","line":2080,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2098: requests.utils.rewind_body(prep)","file":"tests/test_requests.py","line":2098,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2100: assert \"Unable to rewind request body\" in str(e)","file":"tests/test_requests.py","line":2100,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"¿Cómo genero los catálogos de mensajes para la traducción?","query":"gettext build","file":"docs/Makefile","symbol":"gettext","line":176,"lang":"es","candidates":[{"text":"File: docs/Makefile\nLine 177: $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale","file":"docs/Makefile","line":177,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/make.bat\nLine 205: %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale","file":"docs/make.bat","line":205,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"eliminar los archivos generados por el servidor","query":"rm server","file":"tests/certs/valid/server/Makefile","symbol":"clean","line":15,"lang":"es","candidates":[{"text":"File: docs/user/advanced.rst\nLine 94: The ``Response`` object contains all of the information returned by the server and","file":"docs/user/advanced.rst","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 96: request to get some very important information from Wikipedia's servers::","file":"docs/user/advanced.rst","line":96,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/expired/server/Makefile\nLine 10: openssl x509 -req -CA ../ca/ca.crt -CAkey ../ca/ca-private.key -in server.csr -outform PEM -out server.pem -days 0 -CAcreateserial","file":"tests/certs/expired/server/Makefile","line":10,"lexical":0.5,"target":false},{"text":"File: tests/certs/expired/server/Makefile\nLine 16: rm -f server.*","file":"tests/certs/expired/server/Makefile","line":16,"lexical":0.5,"target":false},{"text":"File: tests/certs/valid/server/Makefile\nLine 10: openssl x509 -req -CA ../ca/ca.crt -CAkey ../ca/ca-private.key -in server.csr -outform PEM -out server.pem -extfile cert.cnf -extensions v3_ca -days 7200 -CAcreateserial","file":"tests/certs/valid/server/Makefile","line":10,"lexical":0.5,"target":true},{"text":"File: tests/certs/valid/server/Makefile\nLine 16: rm -f server.*","file":"tests/certs/valid/server/Makefile","line":16,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"帮我找一下处理网络请求返回错误状态码时的异常类定义。我需要看看这个异常是如何继承自基础请求异常的。","query":"HTTP error exception","file":"src/requests/exceptions.py","symbol":"HTTPError","line":66,"lang":"zh","candidates":[{"text":"File: docs/api.rst\nLine 33: .. autoexception:: requests.HTTPError","file":"docs/api.rst","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 396: requests.exceptions.HTTPError: 404 Client Error","file":"docs/user/quickstart.rst","line":396,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 559: raise an :exc:`~requests.exceptions.HTTPError` if the HTTP request","file":"docs/user/quickstart.rst","line":559,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 27: from urllib3.exceptions import HTTPError as _HTTPError","file":"src/requests/adapters.py","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 12: from urllib3.exceptions import HTTPError as BaseHTTPError","file":"src/requests/exceptions.py","line":12,"lexical":0.65,"target":true},{"text":"File: src/requests/exceptions.py\nLine 66: class HTTPError(RequestException):","file":"src/requests/exceptions.py","line":66,"lexical":0.65,"target":false},{"text":"File: src/requests/exceptions.py\nLine 134: class ContentDecodingError(RequestException, BaseHTTPError):","file":"src/requests/exceptions.py","line":134,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 936: with pytest.raises(requests.exceptions.HTTPError):","file":"tests/test_requests.py","line":936,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1504: with pytest.raises(requests.exceptions.HTTPError) as e:","file":"tests/test_requests.py","line":1504,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1610: error = requests.exceptions.HTTPError()","file":"tests/test_requests.py","line":1610,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1613: error = requests.exceptions.HTTPError(response=response)","file":"tests/test_requests.py","line":1613,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1615: error = requests.exceptions.HTTPError(\"message\", response=response)","file":"tests/test_requests.py","line":1615,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Lors de l'envoi d'une requête, les paramètres de connexion comme le mode de streaming, la vérification SSL ou les certificats ne semblent pas être correctement hérités ou appliqués s'ils ne sont pas explicitement passés, ce qui cause des comportements incohérents avec la configuration de la session.","query":"send prepared request","file":"src/requests/sessions.py","symbol":"send","line":752,"lang":"fr","candidates":[{"text":"File: src/requests/adapters.py\nLine 137: \"\"\"Sends PreparedRequest object. Returns Response object.","file":"src/requests/adapters.py","line":137,"lexical":0.55,"target":false},{"text":"File: src/requests/adapters.py\nLine 643: \"\"\"Sends PreparedRequest object. Returns Response object.","file":"src/requests/adapters.py","line":643,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 132: def send(self, request: PreparedRequest, **kwargs: Any) -> Response: ...","file":"src/requests/sessions.py","line":132,"lexical":0.55,"target":true},{"text":"File: src/requests/sessions.py\nLine 752: def send(self, request: PreparedRequest, **kwargs: Any) -> Response:","file":"src/requests/sessions.py","line":752,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 753: \"\"\"Send a given PreparedRequest.","file":"src/requests/sessions.py","line":753,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 768: raise ValueError(\"You can only send PreparedRequests.\")","file":"src/requests/sessions.py","line":768,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 617: def test_respect_proxy_env_on_send_self_prepared_request(self, httpbin):","file":"tests/test_requests.py","line":617,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 624: def test_respect_proxy_env_on_send_session_prepared_request(self, httpbin):","file":"tests/test_requests.py","line":624,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1176: assert str(e.value) == \"You can only send PreparedRequests.\"","file":"tests/test_requests.py","line":1176,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1567: # Verify unpickled PreparedRequest sends properly","file":"tests/test_requests.py","line":1567,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1583: # Verify unpickled PreparedRequest sends properly","file":"tests/test_requests.py","line":1583,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1599: # Verify unpickled PreparedRequest sends properly","file":"tests/test_requests.py","line":1599,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1604: def test_cannot_send_unprepared_requests(self, httpbin):","file":"tests/test_requests.py","line":1604,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"Estoy revisando las pruebas unitarias de la librería. ¿Podrías mostrarme dónde se validan los diferentes métodos de conexión y la gestión de errores con URLs malformadas?","query":"test invalid url","file":"tests/test_requests.py","symbol":"TestRequests","line":84,"lang":"es","candidates":[{"text":"File: tests/test_requests.py\nLine 111: def test_invalid_url(self, exception, url):","file":"tests/test_requests.py","line":111,"lexical":0.65,"target":true},{"text":"File: tests/test_requests.py\nLine 605: with pytest.raises(InvalidProxyURL):","file":"tests/test_requests.py","line":605,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 608: with pytest.raises(InvalidProxyURL):","file":"tests/test_requests.py","line":608,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 611: with pytest.raises(InvalidProxyURL):","file":"tests/test_requests.py","line":611,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 614: with pytest.raises(InvalidProxyURL):","file":"tests/test_requests.py","line":614,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2816: with pytest.raises(requests.exceptions.InvalidURL):","file":"tests/test_requests.py","line":2816,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2819: @pytest.mark.parametrize(\"url, exception\", ((\"http://:1\", InvalidURL),))","file":"tests/test_requests.py","line":2819,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"Je travaille sur la gestion des en-têtes HTTP. Peux-tu me montrer la structure qui permet de récupérer une valeur de dictionnaire sans se soucier de la casse des clés ?","query":"case insensitive dict","file":"src/requests/structures.py","symbol":"CaseInsensitiveDict","line":20,"lang":"fr","candidates":[{"text":"File: HISTORY.md\nLine 968: - Change built-in CaseInsensitiveDict (used for headers) to use","file":"HISTORY.md","line":968,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1317: - The `CaseInsensitiveDict` used for HTTP headers now behaves like a","file":"HISTORY.md","line":1317,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1988: - CaseInsensitiveDict lower-case caching","file":"HISTORY.md","line":1988,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 2015: - Case-Insensitive Header Dictionaries!","file":"HISTORY.md","line":2015,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/_types.py\nLine 67: from .structures import CaseInsensitiveDict","file":"src/requests/_types.py","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/_types.py\nLine 127: _FileName, _FileContent, str, CaseInsensitiveDict[str] | Mapping[str, str]","file":"src/requests/_types.py","line":127,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 52: from .structures import CaseInsensitiveDict","file":"src/requests/adapters.py","line":52,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 382: response.headers = CaseInsensitiveDict(getattr(resp, \"headers\", {}))","file":"src/requests/adapters.py","line":382,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 71: from .structures import CaseInsensitiveDict","file":"src/requests/models.py","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 401: headers: CaseInsensitiveDict[str | bytes]","file":"src/requests/models.py","line":401,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 568: self.headers = CaseInsensitiveDict()","file":"src/requests/models.py","line":568,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 741: headers: CaseInsensitiveDict[str]","file":"src/requests/models.py","line":741,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 773: #: Case-insensitive Dictionary of Response Headers.","file":"src/requests/models.py","line":773,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 776: self.headers = CaseInsensitiveDict()","file":"src/requests/models.py","line":776,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 47: from .structures import CaseInsensitiveDict","file":"src/requests/sessions.py","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 414: headers: CaseInsensitiveDict[str]","file":"src/requests/sessions.py","line":414,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 443: #: A case-insensitive dictionary of headers to be sent on each","file":"src/requests/sessions.py","line":443,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 548: request.headers, self.headers, dict_class=CaseInsensitiveDict","file":"src/requests/sessions.py","line":548,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 20: class CaseInsensitiveDict(MutableMapping[str, _VT], Generic[_VT]):","file":"src/requests/structures.py","line":20,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/structures.py\nLine 21: \"\"\"A case-insensitive ``dict``-like object.","file":"src/requests/structures.py","line":21,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 33: cid = CaseInsensitiveDict()","file":"src/requests/structures.py","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 82: other_dict: CaseInsensitiveDict[Any] = CaseInsensitiveDict(other) # type: ignore[reportUnknownArgumentType]","file":"src/requests/structures.py","line":82,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 89: def copy(self) -> CaseInsensitiveDict[_VT]:","file":"src/requests/structures.py","line":89,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 90: return CaseInsensitiveDict(self._store.values())","file":"src/requests/structures.py","line":90,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 69: from .structures import CaseInsensitiveDict","file":"src/requests/utils.py","line":69,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 569: def get_encoding_from_headers(headers: CaseInsensitiveDict[str]) -> str | None:","file":"src/requests/utils.py","line":569,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 951: def default_headers() -> CaseInsensitiveDict[str]:","file":"src/requests/utils.py","line":951,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 953: :rtype: requests.structures.CaseInsensitiveDict","file":"src/requests/utils.py","line":953,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 955: return CaseInsensitiveDict(","file":"src/requests/utils.py","line":955,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 55: from requests.structures import CaseInsensitiveDict","file":"tests/test_requests.py","line":55,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2331: class TestCaseInsensitiveDict:","file":"tests/test_requests.py","line":2331,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2335: CaseInsensitiveDict({\"Foo\": \"foo\", \"BAr\": \"bar\"}),","file":"tests/test_requests.py","line":2335,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"URLのスキームが足りない時に発生する例外はどこに定義されていますか?","query":"missing url scheme","file":"src/requests/exceptions.py","symbol":"MissingSchema","line":110,"lang":"ja","candidates":[{"text":"File: HISTORY.md\nLine 328: - Improved proxy parsing for proxy URLs missing a scheme. This will address","file":"HISTORY.md","line":328,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1416: - Proxy URLs now *must* have an explicit scheme. A `MissingSchema`","file":"HISTORY.md","line":1416,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 111: \"\"\"The URL scheme (e.g. http or https) is missing.\"\"\"","file":"src/requests/exceptions.py","line":111,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"alle parameter für eine anfrage aufbereiten","query":"prepare request","file":"src/requests/models.py","symbol":"prepare","line":424,"lang":"de","candidates":[{"text":"File: HISTORY.md\nLine 878: `PreparedRequest` objects.","file":"HISTORY.md","line":878,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1038: - When using the PreparedRequest flow, requests will now correctly","file":"HISTORY.md","line":1038,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1040: - When using the PreparedRequest flow, requests will now correctly","file":"HISTORY.md","line":1040,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1106: - Simplify the PreparedRequest.prepare API: We no longer require the","file":"HISTORY.md","line":1106,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1115: - Copy a PreparedRequest's CookieJar more reliably when it is not an","file":"HISTORY.md","line":1115,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1299: - Allow copying of PreparedRequests without headers/cookies.","file":"HISTORY.md","line":1299,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1421: - Added new method to `PreparedRequest` objects:","file":"HISTORY.md","line":1421,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1422: `PreparedRequest.copy()`.","file":"HISTORY.md","line":1422,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1426: - Added new method to `Session` objects: `Session.prepare_request()`.","file":"HISTORY.md","line":1426,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1427: This method updates and prepares a `Request` object, and returns the","file":"HISTORY.md","line":1427,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1428: corresponding `PreparedRequest` object.","file":"HISTORY.md","line":1428,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 64: .. autoclass:: requests.PreparedRequest","file":"docs/api.rst","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 119: .. _prepared-requests:","file":"docs/user/advanced.rst","line":119,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 121: Prepared Requests","file":"docs/user/advanced.rst","line":121,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 126: ``PreparedRequest`` that was used. In some cases you may wish to do some extra","file":"docs/user/advanced.rst","line":126,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 154: prepare it immediately and modify the ``PreparedRequest`` object. You then","file":"docs/user/advanced.rst","line":154,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 162: :class:`PreparedRequest <requests.PreparedRequest>` with that state","file":"docs/user/advanced.rst","line":162,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 163: applied, replace the call to :meth:`Request.prepare()","file":"docs/user/advanced.rst","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 164: <requests.Request.prepare>` with a call to","file":"docs/user/advanced.rst","line":164,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 165: :meth:`Session.prepare_request() <requests.Session.prepare_request>`, like this::","file":"docs/user/advanced.rst","line":165,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 172: prepped = s.prepare_request(req)","file":"docs/user/advanced.rst","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 190: When you are using the prepared request flow, keep in mind that it does not take into account the environment.","file":"docs/user/advanced.rst","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 201: prepped = s.prepare_request(req)","file":"docs/user/advanced.rst","line":201,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/__init__.py\nLine 184: from .models import PreparedRequest, Request, Response","file":"src/requests/__init__.py","line":184,"lexical":0.5,"target":false},{"text":"File: src/requests/__init__.py\nLine 193: \"PreparedRequest\",","file":"src/requests/__init__.py","line":193,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 47: def is_prepared(request: PreparedRequest) -> TypeIs[_ValidatedRequest]:","file":"src/requests/_types.py","line":47,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 48: \"\"\"Verify a PreparedRequest has been fully prepared.\"\"\"","file":"src/requests/_types.py","line":48,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 66: from .models import PreparedRequest, Response","file":"src/requests/_types.py","line":66,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 69: class _ValidatedRequest(PreparedRequest):","file":"src/requests/_types.py","line":69,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 70: \"\"\"Subtype asserting a PreparedRequest has been fully prepared before calling.","file":"src/requests/_types.py","line":70,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 137: tuple[str, str] | AuthBase | Callable[[PreparedRequest], PreparedRequest] | None","file":"src/requests/_types.py","line":137,"lexical":0.5,"target":false},{"text":"File: src/requests/adapters.py\nLine 75: from .models import PreparedRequest","file":"src/requests/adapters.py","line":75,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"ajouter l'en-tête proxy-authorization à la requête","query":"proxy authorization header","file":"src/requests/auth.py","symbol":"__call__","line":119,"lang":"fr","candidates":[{"text":"File: HISTORY.md\nLine 210: forwarding of `Proxy-Authorization` headers to destination servers when","file":"HISTORY.md","line":210,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 214: will construct a `Proxy-Authorization` header that is attached to the request to","file":"HISTORY.md","line":214,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 218: the `Proxy-Authorization` header incorrectly, resulting in the value being","file":"HISTORY.md","line":218,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1323: - No longer expose Authorization or Proxy-Authorization headers on","file":"HISTORY.md","line":1323,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 227: * Proxy-Authorization headers will be overridden by proxy credentials provided in the URL.","file":"docs/user/quickstart.rst","line":227,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 630: headers[\"Proxy-Authorization\"] = _basic_auth_str(username, password)","file":"src/requests/adapters.py","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/auth.py\nLine 120: r.headers[\"Proxy-Authorization\"] = _basic_auth_str(self.username, self.password)","file":"src/requests/auth.py","line":120,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/sessions.py\nLine 345: This method also replaces the Proxy-Authorization header where","file":"src/requests/sessions.py","line":345,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 355: if \"Proxy-Authorization\" in headers:","file":"src/requests/sessions.py","line":355,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 356: del headers[\"Proxy-Authorization\"]","file":"src/requests/sessions.py","line":356,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 366: headers[\"Proxy-Authorization\"] = _basic_auth_str(username, password)","file":"src/requests/sessions.py","line":366,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 656: session.headers.update({\"Proxy-Authorization\": proxy_auth_value})","file":"tests/test_requests.py","line":656,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 660: assert sent_headers.get(\"Proxy-Authorization\") == proxy_auth_value","file":"tests/test_requests.py","line":660,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 681: assert (\"Proxy-Authorization\" in prep.headers) is has_proxy_auth","file":"tests/test_requests.py","line":681,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2223: assert headers == {\"Proxy-Authorization\": \"Basic dXNlcjpwYXNz\"}","file":"tests/test_requests.py","line":2223,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2228: assert headers == {\"Proxy-Authorization\": \"Basic dXNlcjo=\"}","file":"tests/test_requests.py","line":2228,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"セッションオブジェクトがどのように動作するか、その振る舞いと用途について説明してください。","query":"session objects","file":"docs/user/advanced.rst","symbol":"Session Objects","line":10,"lang":"ja","candidates":[{"text":"File: HISTORY.md\nLine 1423: - Added new method to `Session` objects: `Session.update_request()`.","file":"HISTORY.md","line":1423,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1426: - Added new method to `Session` objects: `Session.prepare_request()`.","file":"HISTORY.md","line":1426,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1744: - Make Session objects picklable.","file":"HISTORY.md","line":1744,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 134: * The ``Session`` API has changed. Sessions objects no longer take parameters.","file":"docs/api.rst","line":134,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/community/recommended.rst\nLine 41: `Requests-Threads`_ is a Requests session that returns the amazing Twisted's awaitable Deferreds instead of Response objects. This allows the use of ``async``/``await`` keyword usage on Python 3, or Twisted's style of programming, if desired.","file":"docs/community/recommended.rst","line":41,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 8: .. _session-objects:","file":"docs/user/advanced.rst","line":8,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/user/advanced.rst\nLine 10: Session Objects","file":"docs/user/advanced.rst","line":10,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"HTTPリクエストのヘッダー情報を取得する処理を修正したいです。既存のヘッダーと新しく設定したヘッダーのどちらから優先的に値を返すようになっているか確認させてください。","query":"get header value","file":"src/requests/cookies.py","symbol":"get_header","line":86,"lang":"ja","candidates":[{"text":"File: src/requests/cookies.py\nLine 87: return self._r.headers.get(name, self._new_headers.get(name, default)) # type: ignore[return-value]","file":"src/requests/cookies.py","line":87,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 660: assert sent_headers.get(\"Proxy-Authorization\") == proxy_auth_value","file":"tests/test_requests.py","line":660,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 654: def test_get_encoding_from_headers(value, expected):","file":"tests/test_utils.py","line":654,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 655: assert get_encoding_from_headers(value) == expected","file":"tests/test_utils.py","line":655,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"zeige das abgelaufene serverzertifikat aus den testdaten","query":"expired server cert","file":"tests/certs/expired/server/server.pem","symbol":"CERTIFICATE","line":23,"lang":"de","candidates":[{"text":"File: tests/certs/README.md\nLine 8: * [expired](./expired) server certificate with a valid certificate authority","file":"tests/certs/README.md","line":8,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 2943: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":2943,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2944: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":2944,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2976: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":2976,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2977: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":2977,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3043: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":3043,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3044: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":3044,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Estou atualizando minha documentação de integração e preciso verificar quais foram as modificações nas interfaces de programação. Onde posso encontrar o registro das alterações feitas nas versões mais recentes?","query":"api changes","file":"docs/api.rst","symbol":"API Changes","line":220,"lang":"pt","candidates":[{"text":"File: HISTORY.md\nLine 1308: **API Changes**","file":"HISTORY.md","line":1308,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1348: **API Changes**","file":"HISTORY.md","line":1348,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1412: **API Changes:**","file":"HISTORY.md","line":1412,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 123: API Changes","file":"docs/api.rst","line":123,"lexical":0.6000000000000001,"target":true},{"text":"File: docs/api.rst\nLine 213: For more details on the changes in this release including new APIs, links","file":"docs/api.rst","line":213,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/api.rst\nLine 220: API Changes","file":"docs/api.rst","line":220,"lexical":0.6000000000000001,"target":false}]}
{"site":"project_search","repo":"requests","task":"find logic that adds a protocol prefix to a link if it is missing","query":"prepend scheme url","file":"src/requests/utils.py","symbol":"prepend_scheme_if_needed","line":1040,"lang":"en","candidates":[{"text":"File: src/requests/utils.py\nLine 1040: def prepend_scheme_if_needed(url: str, new_scheme: str) -> str:","file":"src/requests/utils.py","line":1040,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/utils.py\nLine 1041: \"\"\"Given a URL that may or may not have a scheme, prepend the given scheme.","file":"src/requests/utils.py","line":1041,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Como eu inicializo as credenciais de usuário e senha para a autenticação?","query":"auth username password","file":"src/requests/auth.py","symbol":"__init__","line":92,"lang":"pt","candidates":[{"text":"File: src/requests/adapters.py\nLine 284: username, password = get_auth_from_url(proxy)","file":"src/requests/adapters.py","line":284,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 627: username, password = get_auth_from_url(proxy)","file":"src/requests/adapters.py","line":627,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 630: headers[\"Proxy-Authorization\"] = _basic_auth_str(username, password)","file":"src/requests/adapters.py","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/auth.py\nLine 34: def _basic_auth_str(username: bytes | str, password: bytes | str) -> str:","file":"src/requests/auth.py","line":34,"lexical":0.65,"target":true},{"text":"File: src/requests/auth.py\nLine 112: r.headers[\"Authorization\"] = _basic_auth_str(self.username, self.password)","file":"src/requests/auth.py","line":112,"lexical":0.65,"target":false},{"text":"File: src/requests/auth.py\nLine 120: r.headers[\"Proxy-Authorization\"] = _basic_auth_str(self.username, self.password)","file":"src/requests/auth.py","line":120,"lexical":0.65,"target":false},{"text":"File: src/requests/sessions.py\nLine 359: username, password = get_auth_from_url(new_proxies[scheme])","file":"src/requests/sessions.py","line":359,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 366: headers[\"Proxy-Authorization\"] = _basic_auth_str(username, password)","file":"src/requests/sessions.py","line":366,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 1080: auth = (unquote(parsed.username), unquote(parsed.password)) # type: ignore[arg-type]","file":"src/requests/utils.py","line":1080,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 563: def test_set_basicauth(self, httpbin, username, password):","file":"tests/test_requests.py","line":563,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 564: auth = (username, password)","file":"tests/test_requests.py","line":564,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 570: assert p.headers[\"Authorization\"] == _basic_auth_str(username, password)","file":"tests/test_requests.py","line":570,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2138: \"username, password, auth_str\",","file":"tests/test_requests.py","line":2138,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2148: def test_basic_auth_str_is_always_native(self, username, password, auth_str):","file":"tests/test_requests.py","line":2148,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2149: s = _basic_auth_str(username, password)","file":"tests/test_requests.py","line":2149,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Necesito extraer la ruta local de un archivo si la ruta proporcionada apunta a un miembro dentro de un archivo zip. Por favor, implementa la lógica para buscar y descomprimir el archivo en la ubicación temporal adecuada.","query":"extract zipped path","file":"src/requests/utils.py","symbol":"extract_zipped_paths","line":290,"lang":"es","candidates":[{"text":"File: HISTORY.md\nLine 79: - CVE-2026-25645 ``requests.utils.extract_zipped_paths`` now extracts","file":"HISTORY.md","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 333: - Fixed defect in `extract_zipped_paths` which could result in an infinite loop","file":"HISTORY.md","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 290: def extract_zipped_paths(path: str) -> str:","file":"src/requests/utils.py","line":290,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_utils.py\nLine 21: extract_zipped_paths,","file":"tests/test_utils.py","line":21,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 342: class TestExtractZippedPaths:","file":"tests/test_utils.py","line":342,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 353: assert path == extract_zipped_paths(path)","file":"tests/test_utils.py","line":353,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 355: def test_zipped_paths_extracted(self, tmpdir):","file":"tests/test_utils.py","line":355,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 362: extracted_path = extract_zipped_paths(zipped_path)","file":"tests/test_utils.py","line":362,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 365: assert extracted_path != zipped_path","file":"tests/test_utils.py","line":365,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 373: assert extract_zipped_paths(path) == path","file":"tests/test_utils.py","line":373,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Peux-tu m'expliquer comment est initialisée la structure qui contient les en-têtes et le code de statut HTTP ?","query":"status_code headers","file":"src/requests/models.py","symbol":"__init__","line":765,"lang":"fr","candidates":[{"text":"File: src/requests/models.py\nLine 881: return \"location\" in self.headers and self.status_code in REDIRECT_STATI","file":"src/requests/models.py","line":881,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/models.py\nLine 886: return \"location\" in self.headers and self.status_code in (","file":"src/requests/models.py","line":886,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"我正在重写身份验证模块的逻辑,想看看处理对象不相等比较的逻辑是怎么写的。能不能帮我找一下定义‘不等于’运算符逻辑的地方?","query":"not self == other","file":"src/requests/auth.py","symbol":"__ne__","line":353,"lang":"zh","candidates":[{"text":"File: src/requests/auth.py\nLine 109: return not self == other","file":"src/requests/auth.py","line":109,"lexical":0.5,"target":true},{"text":"File: src/requests/auth.py\nLine 354: return not self == other","file":"src/requests/auth.py","line":354,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"Estou tentando rodar os testes automatizados da documentação para garantir que os exemplos estejam funcionando. Onde encontro o comando para disparar essa validação específica?","query":"run doc tests","file":"docs/Makefile","symbol":".PHONY","line":194,"lang":"pt","candidates":[{"text":"File: docs/Makefile\nLine 47: @echo \" doctest to run all doctests embedded in the documentation (if enabled)\"","file":"docs/Makefile","line":47,"lexical":0.55,"target":true},{"text":"File: docs/make.bat\nLine 39: echo. doctest to run all doctests embedded in the documentation if enabled","file":"docs/make.bat","line":39,"lexical":0.55,"target":false}]}
{"site":"project_search","repo":"requests","task":"vérifier la conformité d'un segment d'en-tête selon son type","query":"header validator","file":"src/requests/utils.py","symbol":"_validate_header_part","line":1098,"lang":"fr","candidates":[{"text":"File: src/requests/_internal_utils.py\nLine 18: _HEADER_VALIDATORS_STR = (_VALID_HEADER_NAME_RE_STR, _VALID_HEADER_VALUE_RE_STR)","file":"src/requests/_internal_utils.py","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/_internal_utils.py\nLine 19: _HEADER_VALIDATORS_BYTE = (_VALID_HEADER_NAME_RE_BYTE, _VALID_HEADER_VALUE_RE_BYTE)","file":"src/requests/_internal_utils.py","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/_internal_utils.py\nLine 20: HEADER_VALIDATORS = {","file":"src/requests/_internal_utils.py","line":20,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/_internal_utils.py\nLine 21: bytes: _HEADER_VALIDATORS_BYTE,","file":"src/requests/_internal_utils.py","line":21,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/_internal_utils.py\nLine 22: str: _HEADER_VALIDATORS_STR,","file":"src/requests/_internal_utils.py","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 40: _HEADER_VALIDATORS_BYTE,","file":"src/requests/utils.py","line":40,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/utils.py\nLine 41: _HEADER_VALIDATORS_STR,","file":"src/requests/utils.py","line":41,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 42: HEADER_VALIDATORS,","file":"src/requests/utils.py","line":42,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 1101: header_validator_index: int,","file":"src/requests/utils.py","line":1101,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 1104: validator = _HEADER_VALIDATORS_STR[header_validator_index]","file":"src/requests/utils.py","line":1104,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 1107: validator = _HEADER_VALIDATORS_BYTE[header_validator_index]","file":"src/requests/utils.py","line":1107,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 1114: if not validator.match(header_part): # type: ignore[arg-type]","file":"src/requests/utils.py","line":1114,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 1115: header_kind = \"name\" if header_validator_index == 0 else \"value\"","file":"src/requests/utils.py","line":1115,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"erstelle den body für eine multipart/form-data-anfrage aus dateien und daten","query":"multipart form data encode","file":"src/requests/models.py","symbol":"_encode_files","line":183,"lang":"de","candidates":[{"text":"File: src/requests/models.py\nLine 35: from urllib3.filepost import encode_multipart_formdata","file":"src/requests/models.py","line":35,"lexical":0.5,"target":true},{"text":"File: src/requests/models.py\nLine 249: body, content_type = encode_multipart_formdata(new_fields)","file":"src/requests/models.py","line":249,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"buscar prueba de error por exceso de redirecciones con parámetros","query":"too many redirects","file":"tests/test_requests.py","symbol":"test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS","line":262,"lang":"es","candidates":[{"text":"File: docs/api.rst\nLine 34: .. autoexception:: requests.TooManyRedirects","file":"docs/api.rst","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 566: :exc:`~requests.exceptions.TooManyRedirects` exception is raised.","file":"docs/user/quickstart.rst","line":566,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/__init__.py\nLine 181: TooManyRedirects,","file":"src/requests/__init__.py","line":181,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/__init__.py\nLine 200: \"TooManyRedirects\",","file":"src/requests/__init__.py","line":200,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 106: class TooManyRedirects(RequestException):","file":"src/requests/exceptions.py","line":106,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 107: \"\"\"Too many redirects.\"\"\"","file":"src/requests/exceptions.py","line":107,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 34: TooManyRedirects,","file":"src/requests/sessions.py","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 217: raise TooManyRedirects(","file":"src/requests/sessions.py","line":217,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 485: #: limit, a :class:`TooManyRedirects` exception is raised.","file":"src/requests/sessions.py","line":485,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 48: TooManyRedirects,","file":"tests/test_requests.py","line":48,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 251: def test_HTTP_302_TOO_MANY_REDIRECTS(self, httpbin):","file":"tests/test_requests.py","line":251,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 254: except TooManyRedirects as e:","file":"tests/test_requests.py","line":254,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 260: pytest.fail(\"Expected redirect to raise TooManyRedirects but it did not\")","file":"tests/test_requests.py","line":260,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 262: def test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS(self, httpbin):","file":"tests/test_requests.py","line":262,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 267: except TooManyRedirects as e:","file":"tests/test_requests.py","line":267,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"ssl証明書を検証する仕組みを探して","query":"verify ssl certificate","file":"src/requests/adapters.py","symbol":"cert_verify","line":307,"lang":"ja","candidates":[{"text":"File: docs/community/recommended.rst\nLine 13: validating the trustworthiness of SSL certificates while verifying the","file":"docs/community/recommended.rst","line":13,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/advanced.rst\nLine 193: As a result an ``SSL: CERTIFICATE_VERIFY_FAILED`` is thrown.","file":"docs/user/advanced.rst","line":193,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/advanced.rst\nLine 241: Requests can also ignore verifying the SSL certificate if you set ``verify`` to False::","file":"docs/user/advanced.rst","line":241,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 310: \"\"\"Verify a SSL certificate. This method should not be called from user","file":"src/requests/adapters.py","line":310,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/adapters.py\nLine 319: :param cert: The SSL certificate to verify.","file":"src/requests/adapters.py","line":319,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"GET リクエストで URL フラグメント(「#」で始まる部分)がリダイレクト先にも維持されることを確認するテストケースを実装してください。フラグメントにクエリパラメータのような文字列(例: \"#view=edit&token=hunter2\")が含まれている場合、リダイレクト履歴内のリクエスト URL および最終的な応答 URL に、このフラグメントが正しく保持されていることを検証します。","query":"fragment redirect GET","file":"tests/test_requests.py","symbol":"test_fragment_maintained_on_redirect","line":360,"lang":"ja","candidates":[{"text":"File: tests/test_requests.py\nLine 362: r = requests.get(httpbin(\"redirect-to?url=get\") + fragment)","file":"tests/test_requests.py","line":362,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 365: assert r.history[0].request.url == httpbin(\"redirect-to?url=get\") + fragment","file":"tests/test_requests.py","line":365,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"ドキュメント生成に使用するコマンドの定義が、変数として正しく設定されていないようです。ビルドプロセスで呼び出される実行ファイルの設定を確認してください。","query":"sphinx build command","file":"docs/Makefile","symbol":"SPHINXBUILD","line":6,"lang":"ja","candidates":[{"text":"File: docs/Makefile\nLine 12: $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable…","file":"docs/Makefile","line":12,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/make.bat\nLine 62: echo.The 'sphinx-build' command was not found. Make sure you have Sphinx","file":"docs/make.bat","line":62,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Necesito liberar los recursos del adaptador, cerrando el PoolManager y los ProxyManagers activos. Por favor, implementa la función que descarta el estado interno y cierra las conexiones en búfer.","query":"close connection pool","file":"src/requests/adapters.py","symbol":"close","line":555,"lang":"es","candidates":[{"text":"File: src/requests/adapters.py\nLine 559: which closes any pooled connections.","file":"src/requests/adapters.py","line":559,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 2750: def test_urllib3_pool_connection_closed(httpbin):","file":"tests/test_requests.py","line":2750,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Ich habe festgestellt, dass bei Standard-Anfragen bestimmte Header wie User-Agent und Accept-Encoding fehlen oder nicht wie erwartet gesetzt werden. Bitte prüfe die Stelle, an der die Standard-Header für HTTP-Requests initialisiert werden, um sicherzustellen, dass die Standardwerte korrekt zurückgegeben werden.","query":"default headers","file":"src/requests/utils.py","symbol":"default_headers","line":951,"lang":"de","candidates":[{"text":"File: HISTORY.md\nLine 1383: - Parse headers correctly when users override the default `Host:`","file":"HISTORY.md","line":1383,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 1080: In unusual circumstances you may want to provide headers in an ordered manner. If you pass an ``OrderedDict`` to the ``headers`` keyword argument, that will provide the headers with an ordering. *However*, the ordering of the default headers used by Reques…","file":"docs/user/advanced.rst","line":1080,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 1082: If this is problematic, users should consider setting the default headers on a :class:`Session <requests.Session>` object, by setting :attr:`Session.headers <requests.Session.headers>` to a custom ``OrderedDict``. That ordering will always be preferred.","file":"docs/user/advanced.rst","line":1082,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 87: return self._r.headers.get(name, self._new_headers.get(name, default)) # type: ignore[return-value]","file":"src/requests/cookies.py","line":87,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 50: default_headers,","file":"src/requests/sessions.py","line":50,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 446: self.headers = default_headers()","file":"src/requests/sessions.py","line":446,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 951: def default_headers() -> CaseInsensitiveDict[str]:","file":"src/requests/utils.py","line":951,"lexical":0.39999999999999997,"target":true}]}
{"site":"project_search","repo":"requests","task":"verifica se valores nulos em cabeçalhos de sessão são omitidos na requisição preparada","query":"session headers none","file":"tests/test_requests.py","symbol":"test_headers_on_session_with_None_are_not_sent","line":496,"lang":"pt","candidates":[{"text":"File: HISTORY.md\nLine 1329: - Headers set to `None` on the `Session` are now correctly not sent.","file":"HISTORY.md","line":1329,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 496: def test_headers_on_session_with_None_are_not_sent(self, httpbin):","file":"tests/test_requests.py","line":496,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 497: \"\"\"Do not send headers in Session.headers with None values.\"\"\"","file":"tests/test_requests.py","line":497,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"HTTP通信のコア部分を実装しているのですが、リクエストを組み立てて送信し、レスポンスを受け取るメインのメソッドはどこに定義されていますか?引数にメソッドやURL、認証情報などを渡して実行する仕組みを探しています。","query":"send http request","file":"src/requests/sessions.py","symbol":"request","line":557,"lang":"ja","candidates":[{"text":"File: README.md\nLine 26: Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data — but nowadays, just use the `json` method!","file":"README.md","line":26,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/community/out-there.rst\nLine 10: - `Sending JSON in Requests <https://www.coglib.com/~icordasc/blog/2014/11/sending-json-in-requests.html>`_","file":"docs/community/out-there.rst","line":10,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/index.rst\nLine 53: **Requests** allows you to send HTTP/1.1 requests extremely easily.","file":"docs/index.rst","line":53,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/api.py\nLine 36: :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.","file":"src/requests/api.py","line":36,"lexical":0.55,"target":false},{"text":"File: src/requests/models.py\nLine 410: #: HTTP URL to send the request to.","file":"src/requests/models.py","line":410,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 617: def test_respect_proxy_env_on_send_self_prepared_request(self, httpbin):","file":"tests/test_requests.py","line":617,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 624: def test_respect_proxy_env_on_send_session_prepared_request(self, httpbin):","file":"tests/test_requests.py","line":624,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1604: def test_cannot_send_unprepared_requests(self, httpbin):","file":"tests/test_requests.py","line":1604,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"환경 변수로 프록시를 사용하는 테스트 코드를 찾아주세요.","query":"test environment proxy","file":"tests/test_lowlevel.py","symbol":"test_use_proxy_from_environment","line":290,"lang":"ko","candidates":[{"text":"File: tests/conftest.py\nLine 27: \"\"\"Remove proxy related environment variables for every test.\"\"\"","file":"tests/conftest.py","line":27,"lexical":0.65,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 290: def test_use_proxy_from_environment(httpbin, var, scheme):","file":"tests/test_lowlevel.py","line":290,"lexical":0.65,"target":true}]}
{"site":"project_search","repo":"requests","task":"Ich versuche gerade, die Dokumentation zu exportieren. Wo finde ich den Befehl, der eine einzige HTML-Datei aus den Sphinx-Quellen generiert?","query":"sphinx singlehtml build","file":"docs/Makefile","symbol":"singlehtml","line":67,"lang":"de","candidates":[{"text":"File: docs/Makefile\nLine 68: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml","file":"docs/Makefile","line":68,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/make.bat\nLine 92: %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml","file":"docs/make.bat","line":92,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"辞書からクッキーコンテナを作成または更新する関数を探して","query":"dict cookiejar","file":"src/requests/cookies.py","symbol":"cookiejar_from_dict","line":572,"lang":"ja","candidates":[{"text":"File: HISTORY.md\nLine 1672: - Proper CookieJar-backed cookies interface with awesome dict-like","file":"HISTORY.md","line":1672,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 96: .. autofunction:: requests.utils.dict_from_cookiejar","file":"docs/api.rst","line":96,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 97: .. autofunction:: requests.utils.add_dict_to_cookiejar","file":"docs/api.rst","line":97,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 98: .. autofunction:: requests.cookies.cookiejar_from_dict","file":"docs/api.rst","line":98,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/_types.py\nLine 159: cookies: RequestsCookieJar | CookieJar | dict[str, str] | None","file":"src/requests/_types.py","line":159,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 37: :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.","file":"src/requests/api.py","line":37,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 192: \"\"\"Compatibility class; is a http.cookiejar.CookieJar, but exposes a dict","file":"src/requests/cookies.py","line":192,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/cookies.py\nLine 295: jar. Allows client-code to call ``dict(RequestsCookieJar)`` and get a","file":"src/requests/cookies.py","line":295,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 394: \"\"\"Updates this jar with cookies from another CookieJar or dict-like\"\"\"","file":"src/requests/cookies.py","line":394,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 564: def cookiejar_from_dict(","file":"src/requests/cookies.py","line":564,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 572: def cookiejar_from_dict(","file":"src/requests/cookies.py","line":572,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 579: def cookiejar_from_dict(","file":"src/requests/cookies.py","line":579,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 584: \"\"\"Returns a CookieJar from a key/value dictionary.","file":"src/requests/cookies.py","line":584,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 586: :param cookie_dict: Dict of key/values to insert into CookieJar.","file":"src/requests/cookies.py","line":586,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 599: cookiejar.set_cookie(create_cookie(name, cookie_dict[name]))","file":"src/requests/cookies.py","line":599,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 605: cookiejar: CookieJar, cookies: dict[str, str] | CookieJar | None","file":"src/requests/cookies.py","line":605,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 610: :param cookies: Dictionary or CookieJar object to be added.","file":"src/requests/cookies.py","line":610,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 617: cookiejar = cookiejar_from_dict(cookies, cookiejar=cookiejar, overwrite=False)","file":"src/requests/cookies.py","line":617,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 54: cookiejar_from_dict,","file":"src/requests/models.py","line":54,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 301: :param cookies: dictionary or CookieJar of cookies to attach to this request.","file":"src/requests/models.py","line":301,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 321: cookies: RequestsCookieJar | CookieJar | dict[str, str] | None","file":"src/requests/models.py","line":321,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 332: cookies: RequestsCookieJar | CookieJar | dict[str, str] | None = None,","file":"src/requests/models.py","line":332,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 433: cookies: RequestsCookieJar | CookieJar | dict[str, str] | None = None,","file":"src/requests/models.py","line":433,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 700: self, cookies: RequestsCookieJar | CookieJar | dict[str, str] | None","file":"src/requests/models.py","line":700,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 715: self._cookies = cookiejar_from_dict(cookies)","file":"src/requests/models.py","line":715,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 798: self.cookies = cookiejar_from_dict({})","file":"src/requests/models.py","line":798,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 26: cookiejar_from_dict,","file":"src/requests/sessions.py","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 498: self.cookies = cookiejar_from_dict({})","file":"src/requests/sessions.py","line":498,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 528: cookies = cookiejar_from_dict(cookies)","file":"src/requests/sessions.py","line":528,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 564: cookies: RequestsCookieJar | CookieJar | dict[str, str] | None = None,","file":"src/requests/sessions.py","line":564,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 589: :param cookies: (optional) Dict or CookieJar object to send with the","file":"src/requests/sessions.py","line":589,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 62: from .cookies import cookiejar_from_dict","file":"src/requests/utils.py","line":62,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Error al intentar deserializar el cuerpo de la respuesta cuando el contenido no tiene una codificación establecida, lo que provoca fallos en la detección automática del charset.","query":"json decode encoding","file":"src/requests/models.py","symbol":"json","line":1091,"lang":"es","candidates":[{"text":"File: src/requests/models.py\nLine 1109: return complexjson.loads(self.content.decode(encoding), **kwargs)","file":"src/requests/models.py","line":1109,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_lowlevel.py\nLine 407: def test_json_decode_compatibility_for_alt_utf_encodings():","file":"tests/test_lowlevel.py","line":407,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"I'm looking at how we handle domain names in our request objects. Can you show me where we convert internationalized hostnames into their punycode representation?","query":"idna encode host","file":"src/requests/models.py","symbol":"_get_idna_encoded_host","line":474,"lang":"en","candidates":[{"text":"File: HISTORY.md\nLine 840: IDNA-encode a URL if it can but, if it fails, and the host contains","file":"HISTORY.md","line":840,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 474: def _get_idna_encoded_host(host: str) -> str:","file":"src/requests/models.py","line":474,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/models.py\nLine 478: host = idna.encode(host, uts46=True).decode(\"utf-8\")","file":"src/requests/models.py","line":478,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 530: host = self._get_idna_encoded_host(host)","file":"src/requests/models.py","line":530,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"I'm trying to set up the automated testing environment. Where are the build commands defined for generating the different types of certificates and running the local server?","query":"test cert server","file":"tests/certs/expired/Makefile","symbol":".PHONY","line":1,"lang":"en","candidates":[{"text":"File: tests/test_requests.py\nLine 2943: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":2943,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2944: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":2944,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2976: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":2976,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2977: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":2977,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 3009: cert_chain=\"tests/certs/valid/server/server.pem\",","file":"tests/test_requests.py","line":3009,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 3010: keyfile=\"tests/certs/valid/server/server.key\",","file":"tests/test_requests.py","line":3010,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 3043: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":3043,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 3044: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":3044,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"변경 사항을 요약하는 메일 초안을 생성해야 하는데, 관련 빌드 타겟이 뭔지 알려줘.","query":"make changes","file":"docs/Makefile","symbol":".PHONY","line":181,"lang":"ko","candidates":[{"text":"File: docs/Makefile\nLine 43: @echo \" changes to make an overview of all changed/added/deprecated items\"","file":"docs/Makefile","line":43,"lexical":0.6000000000000001,"target":true},{"text":"File: docs/make.bat\nLine 35: echo. changes to make an overview over all changed/added/deprecated items","file":"docs/make.bat","line":35,"lexical":0.6000000000000001,"target":false},{"text":"File: src/requests/models.py\nLine 690: # Allow auth to make its changes.","file":"src/requests/models.py","line":690,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"como testar se o servidor aguarda um evento antes de fechar?","query":"server wait event","file":"tests/test_testserver.py","symbol":"test_basic_waiting_server","line":63,"lang":"pt","candidates":[{"text":"File: tests/test_lowlevel.py\nLine 27: server = Server.basic_response_server(wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 66: server = Server(echo_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":66,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 84: server = Server(echo_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":84,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 177: server = Server(digest_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":177,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 227: server = Server(digest_failed_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":227,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 264: server = Server(digest_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":264,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 328: server = Server(redirect_resp_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":328,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 345: server = Server(echo_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":345,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 389: server = Server(response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":389,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 418: server = Server(response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":418,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2941: wait_to_close_event=close_server,","file":"tests/test_requests.py","line":2941,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2974: wait_to_close_event=close_server,","file":"tests/test_requests.py","line":2974,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3007: wait_to_close_event=close_server,","file":"tests/test_requests.py","line":3007,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3041: wait_to_close_event=close_server,","file":"tests/test_requests.py","line":3041,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_testserver.py\nLine 64: \"\"\"the server waits for the block_server event to be set before closing\"\"\"","file":"tests/test_testserver.py","line":64,"lexical":0.65,"target":true},{"text":"File: tests/test_testserver.py\nLine 67: with Server.basic_response_server(wait_to_close_event=block_server) as (","file":"tests/test_testserver.py","line":67,"lexical":0.65,"target":false},{"text":"File: tests/testserver/server.py\nLine 108: [self.server_sock], [], [], self.WAIT_EVENT_TIMEOUT","file":"tests/testserver/server.py","line":108,"lexical":0.65,"target":false},{"text":"File: tests/testserver/server.py\nLine 128: # avoid server from waiting for event timeouts","file":"tests/testserver/server.py","line":128,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"Show me the community guidelines and expected behavior for contributors in the documentation.","query":"code of conduct","file":"docs/dev/contributing.rst","symbol":"Code of Conduct","line":25,"lang":"en","candidates":[{"text":"File: docs/dev/contributing.rst\nLine 25: Code of Conduct","file":"docs/dev/contributing.rst","line":25,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/dev/contributing.rst\nLine 32: `Python Software Foundation Code of Conduct`_ to help steer your interactions","file":"docs/dev/contributing.rst","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/dev/contributing.rst\nLine 35: .. _Python Software Foundation Code of Conduct: https://policies.python.org/python.org/code-of-conduct/","file":"docs/dev/contributing.rst","line":35,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"这个文件里是用什么命令生成服务器证书并把 CA 证书合并进去的?","query":"openssl x509 >>","file":"tests/certs/valid/server/Makefile","symbol":"server.pem","line":9,"lang":"zh","candidates":[{"text":"File: tests/certs/expired/server/Makefile\nLine 11: openssl x509 -in ../ca/ca.crt -outform PEM >> $@","file":"tests/certs/expired/server/Makefile","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/certs/mtls/client/Makefile\nLine 11: openssl x509 -in ./ca/ca.crt -outform PEM >> $@","file":"tests/certs/mtls/client/Makefile","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/certs/valid/server/Makefile\nLine 11: openssl x509 -in ../ca/ca.crt -outform PEM >> $@","file":"tests/certs/valid/server/Makefile","line":11,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"busca la función para enviar peticiones de borrado","query":"send delete request","file":"src/requests/sessions.py","symbol":"delete","line":742,"lang":"es","candidates":[{"text":"File: src/requests/api.py\nLine 172: r\"\"\"Sends a DELETE request.","file":"src/requests/api.py","line":172,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 743: r\"\"\"Sends a DELETE request. Returns :class:`Response` object.","file":"src/requests/sessions.py","line":743,"lexical":0.55,"target":true}]}
{"site":"project_search","repo":"requests","task":"URLの末尾にパラメータが追加される際、フラグメントより前に配置されることを確認したいです。","query":"url params fragment","file":"tests/test_requests.py","symbol":"test_params_are_added_before_fragment","line":163,"lang":"ja","candidates":[{"text":"File: src/requests/utils.py\nLine 1128: scheme, netloc, path, params, query, _fragment = urlparse(url)","file":"src/requests/utils.py","line":1128,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 163: def test_params_are_added_before_fragment(self, url, expected):","file":"tests/test_requests.py","line":163,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"Ich versuche gerade die Dokumentation zu bauen. Gibt es einen spezifischen Befehl, um das PDF mit japanischer Schriftunterstützung zu generieren?","query":"latex pdf ja","file":"docs/Makefile","symbol":".PHONY","line":141,"lang":"de","candidates":[{"text":"File: docs/Makefile\nLine 37: @echo \" latexpdfja to make LaTeX files and run them through platex/dvipdfmx\"","file":"docs/Makefile","line":37,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/Makefile\nLine 141: .PHONY: latexpdfja","file":"docs/Makefile","line":141,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/Makefile\nLine 142: latexpdfja:","file":"docs/Makefile","line":142,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/Makefile\nLine 145: $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja","file":"docs/Makefile","line":145,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/make.bat\nLine 170: if \"%1\" == \"latexpdfja\" (","file":"docs/make.bat","line":170,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Estoy configurando los parámetros de compilación para la documentación. ¿Dónde se están combinando las opciones de formato de papel con las variables de Sphinx?","query":"SPHINXOPTS PAPEROPT","file":"docs/Makefile","symbol":"I18NSPHINXOPTS","line":20,"lang":"es","candidates":[{"text":"File: docs/Makefile\nLine 18: ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .","file":"docs/Makefile","line":18,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/Makefile\nLine 20: I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .","file":"docs/Makefile","line":20,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"查找定义请求参数类型的结构体","query":"request kwargs type","file":"src/requests/_types.py","symbol":"PostKwargs","line":181,"lang":"zh","candidates":[{"text":"File: src/requests/_types.py\nLine 157: class BaseRequestKwargs(TypedDict, total=False):","file":"src/requests/_types.py","line":157,"lexical":0.65,"target":true},{"text":"File: src/requests/api.py\nLine 25: method: str, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]","file":"src/requests/api.py","line":25,"lexical":0.55,"target":false},{"text":"File: src/requests/api.py\nLine 90: def options(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":90,"lexical":0.55,"target":false},{"text":"File: src/requests/api.py\nLine 102: def head(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":102,"lexical":0.55,"target":false},{"text":"File: src/requests/api.py\nLine 171: def delete(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":171,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 673: def options(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":673,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 684: def head(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":684,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 742: def delete(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":742,"lexical":0.55,"target":false}]}
{"site":"project_search","repo":"requests","task":"set authorization header on prepared request","query":"authorization header","file":"src/requests/auth.py","symbol":"__call__","line":111,"lang":"en","candidates":[{"text":"File: HISTORY.md\nLine 210: forwarding of `Proxy-Authorization` headers to destination servers when","file":"HISTORY.md","line":210,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 214: will construct a `Proxy-Authorization` header that is attached to the request to","file":"HISTORY.md","line":214,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 218: the `Proxy-Authorization` header incorrectly, resulting in the value being","file":"HISTORY.md","line":218,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 488: - Fixed bug with unintended Authorization header stripping for","file":"HISTORY.md","line":488,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 500: - Requests removes Authorization header from requests redirected","file":"HISTORY.md","line":500,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1323: - No longer expose Authorization or Proxy-Authorization headers on","file":"HISTORY.md","line":1323,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 221: * Authorization headers set with `headers=` will be overridden if credentials","file":"docs/user/quickstart.rst","line":221,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 226: * Authorization headers will be removed if you get redirected off-host.","file":"docs/user/quickstart.rst","line":226,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 227: * Proxy-Authorization headers will be overridden by proxy credentials provided in the URL.","file":"docs/user/quickstart.rst","line":227,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 630: headers[\"Proxy-Authorization\"] = _basic_auth_str(username, password)","file":"src/requests/adapters.py","line":630,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/auth.py\nLine 112: r.headers[\"Authorization\"] = _basic_auth_str(self.username, self.password)","file":"src/requests/auth.py","line":112,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/auth.py\nLine 120: r.headers[\"Proxy-Authorization\"] = _basic_auth_str(self.username, self.password)","file":"src/requests/auth.py","line":120,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/auth.py\nLine 311: prep.headers[\"Authorization\"] = _digest_auth","file":"src/requests/auth.py","line":311,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/auth.py\nLine 330: r.headers[\"Authorization\"] = _digest_auth","file":"src/requests/auth.py","line":330,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 155: \"\"\"Decide whether Authorization header should be removed when redirecting\"\"\"","file":"src/requests/sessions.py","line":155,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 324: if \"Authorization\" in headers and self.should_strip_auth(original_url, url):","file":"src/requests/sessions.py","line":324,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 327: del headers[\"Authorization\"]","file":"src/requests/sessions.py","line":327,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 345: This method also replaces the Proxy-Authorization header where","file":"src/requests/sessions.py","line":345,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 355: if \"Proxy-Authorization\" in headers:","file":"src/requests/sessions.py","line":355,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 356: del headers[\"Proxy-Authorization\"]","file":"src/requests/sessions.py","line":356,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 366: headers[\"Proxy-Authorization\"] = _basic_auth_str(username, password)","file":"src/requests/sessions.py","line":366,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 158: # Verify we receive an Authorization header in response, then redirect.","file":"tests/test_lowlevel.py","line":158,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 185: assert 'Authorization' in r.request.headers","file":"tests/test_lowlevel.py","line":185,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 186: assert r.request.headers['Authorization'].startswith('Digest ')","file":"tests/test_lowlevel.py","line":186,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 214: # Verify we receive an Authorization header in response, then","file":"tests/test_lowlevel.py","line":214,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 570: assert p.headers[\"Authorization\"] == _basic_auth_str(username, password)","file":"tests/test_requests.py","line":570,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 580: assert p.headers[\"Authorization\"] == \"Basic xa9zZXJuYW1lOnRlc3TGtg==\"","file":"tests/test_requests.py","line":580,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 656: session.headers.update({\"Proxy-Authorization\": proxy_auth_value})","file":"tests/test_requests.py","line":656,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 660: assert sent_headers.get(\"Proxy-Authorization\") == proxy_auth_value","file":"tests/test_requests.py","line":660,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 681: assert (\"Proxy-Authorization\" in prep.headers) is has_proxy_auth","file":"tests/test_requests.py","line":681,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 816: assert '\"auth\"' in r.request.headers[\"Authorization\"]","file":"tests/test_requests.py","line":816,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 1930: assert r.history[0].request.headers[\"Authorization\"]","file":"tests/test_requests.py","line":1930,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"onde eu apago os arquivos gerados do servidor?","query":"rm server","file":"tests/certs/expired/server/Makefile","symbol":"clean","line":15,"lang":"pt","candidates":[{"text":"File: docs/user/advanced.rst\nLine 94: The ``Response`` object contains all of the information returned by the server and","file":"docs/user/advanced.rst","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 96: request to get some very important information from Wikipedia's servers::","file":"docs/user/advanced.rst","line":96,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/expired/server/Makefile\nLine 10: openssl x509 -req -CA ../ca/ca.crt -CAkey ../ca/ca-private.key -in server.csr -outform PEM -out server.pem -days 0 -CAcreateserial","file":"tests/certs/expired/server/Makefile","line":10,"lexical":0.5,"target":true},{"text":"File: tests/certs/expired/server/Makefile\nLine 16: rm -f server.*","file":"tests/certs/expired/server/Makefile","line":16,"lexical":0.5,"target":false},{"text":"File: tests/certs/valid/server/Makefile\nLine 10: openssl x509 -req -CA ../ca/ca.crt -CAkey ../ca/ca-private.key -in server.csr -outform PEM -out server.pem -extfile cert.cnf -extensions v3_ca -days 7200 -CAcreateserial","file":"tests/certs/valid/server/Makefile","line":10,"lexical":0.5,"target":false},{"text":"File: tests/certs/valid/server/Makefile\nLine 16: rm -f server.*","file":"tests/certs/valid/server/Makefile","line":16,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"Como verificar se a função super_len retorna o tamanho restante de um arquivo após leitura?","query":"super_len tell test","file":"tests/test_utils.py","symbol":"test_super_len_with_tell","line":139,"lang":"pt","candidates":[{"text":"File: tests/test_utils.py\nLine 73: def test_super_len_handles_files_raising_weird_errors_in_tell(self, error):","file":"tests/test_utils.py","line":73,"lexical":0.65,"target":true},{"text":"File: tests/test_utils.py\nLine 86: def test_super_len_tell_ioerror(self, error):","file":"tests/test_utils.py","line":86,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 139: def test_super_len_with_tell(self):","file":"tests/test_utils.py","line":139,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"A4サイズの用紙設定がLaTeXのコンパイルオプションとして定義されていますが、これが正しく反映されない、もしくは他の用紙サイズ設定と競合する可能性があるため、定義箇所を確認してください。","query":"latex paper size","file":"docs/Makefile","symbol":"PAPEROPT_a4","line":16,"lang":"ja","candidates":[{"text":"File: docs/Makefile\nLine 16: PAPEROPT_a4 = -D latex_paper_size=a4","file":"docs/Makefile","line":16,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/Makefile\nLine 17: PAPEROPT_letter = -D latex_paper_size=letter","file":"docs/Makefile","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/make.bat\nLine 12: set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%","file":"docs/make.bat","line":12,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/make.bat\nLine 13: set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%","file":"docs/make.bat","line":13,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"verify repr, item access, get, hasattr and getattr behavior of lookupdict","query":"lookupdict test","file":"tests/test_structures.py","symbol":"TestLookupDict","line":54,"lang":"es","candidates":[{"text":"File: tests/test_structures.py\nLine 54: class TestLookupDict:","file":"tests/test_structures.py","line":54,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/test_structures.py\nLine 58: self.lookup_dict = LookupDict(\"test\")","file":"tests/test_structures.py","line":58,"lexical":0.6000000000000001,"target":false}]}
{"site":"project_search","repo":"requests","task":"I'm trying to figure out how to build the project documentation. Where is the command defined that triggers the generation of the manual or help files?","query":"generate documentation","file":"Makefile","symbol":".PHONY","line":1,"lang":"en","candidates":[{"text":"File: LICENSE\nLine 33: not limited to compiled object code, generated documentation,","file":"LICENSE","line":33,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/conf.py\nLine 73: # The language for content autogenerated by Sphinx. Refer to documentation","file":"docs/conf.py","line":73,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"특정 텍스트를 응답으로 돌려주는 서버를 테스트하려면 어떻게 구현해야 하나요? 소켓에서 데이터를 읽고 지정된 문자열을 다시 보내주는 로직을 찾고 있습니다.","query":"text response server","file":"tests/testserver/server.py","symbol":"text_response_server","line":52,"lang":"ko","candidates":[{"text":"File: tests/test_testserver.py\nLine 43: \"\"\"the text_response_server sends the given text\"\"\"","file":"tests/test_testserver.py","line":43,"lexical":0.65,"target":false},{"text":"File: tests/test_testserver.py\nLine 44: server = Server.text_response_server(","file":"tests/test_testserver.py","line":44,"lexical":0.65,"target":false},{"text":"File: tests/testserver/server.py\nLine 52: def text_response_server(cls, text, request_timeout=0.5, **kwargs):","file":"tests/testserver/server.py","line":52,"lexical":0.65,"target":true},{"text":"File: tests/testserver/server.py\nLine 59: return Server(text_response_handler, **kwargs)","file":"tests/testserver/server.py","line":59,"lexical":0.65,"target":false},{"text":"File: tests/testserver/server.py\nLine 63: return cls.text_response_server(","file":"tests/testserver/server.py","line":63,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"我在处理 HTTP 请求构造的部分,能不能帮我找一下专门用来检查请求头键值对里有没有空格或非法字符的方法?我需要确保发送出去的数据格式是合规的。","query":"validate header","file":"src/requests/utils.py","symbol":"check_header_validity","line":1087,"lang":"zh","candidates":[{"text":"File: src/requests/utils.py\nLine 1094: _validate_header_part(header, name, 0)","file":"src/requests/utils.py","line":1094,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/utils.py\nLine 1095: _validate_header_part(header, value, 1)","file":"src/requests/utils.py","line":1095,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 1098: def _validate_header_part(","file":"src/requests/utils.py","line":1098,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"get list of cookie name value pairs from the jar","query":"cookie items","file":"src/requests/cookies.py","symbol":"items","line":293,"lang":"en","candidates":[{"text":"File: tests/test_requests.py\nLine 1336: def test_cookie_as_dict_keeps_items(self):","file":"tests/test_requests.py","line":1336,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 1387: def test_cookie_as_dict_items(self):","file":"tests/test_requests.py","line":1387,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Estoy intentando implementar una limpieza de sesiones y necesito saber cómo eliminar un elemento específico usando la sintaxis de corchetes. ¿Podrías mostrarme la lógica que se usa para borrar una entrada de la colección por su clave?","query":"remove cookie name","file":"src/requests/cookies.py","symbol":"__delitem__","line":376,"lang":"es","candidates":[{"text":"File: src/requests/cookies.py\nLine 164: def remove_cookie_by_name(","file":"src/requests/cookies.py","line":164,"lexical":0.65,"target":true},{"text":"File: src/requests/cookies.py\nLine 238: remove_cookie_by_name(","file":"src/requests/cookies.py","line":238,"lexical":0.65,"target":false},{"text":"File: src/requests/cookies.py\nLine 378: ``remove_cookie_by_name()``.","file":"src/requests/cookies.py","line":378,"lexical":0.65,"target":false},{"text":"File: src/requests/cookies.py\nLine 380: remove_cookie_by_name(self, name)","file":"src/requests/cookies.py","line":380,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"trouver les informations sur la divulgation des vulnérabilités","query":"disclosure vulnerability","file":"docs/community/vulnerabilities.rst","symbol":"Vulnerability Disclosure","line":1,"lang":"fr","candidates":[{"text":"File: docs/community/vulnerabilities.rst\nLine 1: Vulnerability Disclosure","file":"docs/community/vulnerabilities.rst","line":1,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/community/vulnerabilities.rst\nLine 4: The latest vulnerability disclosure information can be found on GitHub in our","file":"docs/community/vulnerabilities.rst","line":4,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"基本認証のヘッダー作成テストを探して","query":"basic auth test","file":"tests/test_requests.py","symbol":"test_set_basicauth","line":563,"lang":"ja","candidates":[{"text":"File: tests/test_requests.py\nLine 539: def test_BASICAUTH_TUPLE_HTTP_200_OK_GET(self, httpbin):","file":"tests/test_requests.py","line":539,"lexical":0.65,"target":true},{"text":"File: tests/test_requests.py\nLine 563: def test_set_basicauth(self, httpbin, username, password):","file":"tests/test_requests.py","line":563,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 572: def test_basicauth_encodes_byte_strings(self):","file":"tests/test_requests.py","line":572,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 683: def test_basicauth_with_netrc(self, httpbin):","file":"tests/test_requests.py","line":683,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 718: def test_basicauth_with_netrc_leak(self, httpbin):","file":"tests/test_requests.py","line":718,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 2148: def test_basic_auth_str_is_always_native(self, username, password, auth_str):","file":"tests/test_requests.py","line":2148,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"我正在验证代理配置逻辑,请帮我写一个测试用例,确保在不设置 no_proxy 参数时,函数不会返回空的代理字典。","query":"test no_proxy bypass","file":"tests/test_utils.py","symbol":"test_not_bypass","line":252,"lang":"zh","candidates":[{"text":"File: tests/test_utils.py\nLine 263: def test_bypass_no_proxy_keyword(self, url):","file":"tests/test_utils.py","line":263,"lexical":0.65,"target":true},{"text":"File: tests/test_utils.py\nLine 277: def test_not_bypass_no_proxy_keyword(self, url, monkeypatch):","file":"tests/test_utils.py","line":277,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 838: def test_should_bypass_proxies_no_proxy(url, expected, monkeypatch):","file":"tests/test_utils.py","line":838,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 861: def test_should_bypass_proxies_no_proxy_domain_boundary(url, expected):","file":"tests/test_utils.py","line":861,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"verify that lower_items returns the lowercase key for case insensitive dict","query":"test lower_items","file":"tests/test_structures.py","symbol":"test_lower_items","line":29,"lang":"en","candidates":[{"text":"File: tests/test_requests.py\nLine 2432: def test_lower_items(self):","file":"tests/test_requests.py","line":2432,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/test_structures.py\nLine 29: def test_lower_items(self):","file":"tests/test_structures.py","line":29,"lexical":0.6000000000000001,"target":true}]}
{"site":"project_search","repo":"requests","task":"url과 프록시 설정을 받아 해당 url에 사용할 프록시 uri를 어떻게 선택하는지 설명해줘.","query":"select proxy","file":"src/requests/utils.py","symbol":"select_proxy","line":885,"lang":"ko","candidates":[{"text":"File: src/requests/adapters.py\nLine 58: select_proxy,","file":"src/requests/adapters.py","line":58,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 483: proxy = select_proxy(request.url, proxies)","file":"src/requests/adapters.py","line":483,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 535: proxy = select_proxy(url, proxies)","file":"src/requests/adapters.py","line":535,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 583: proxy = select_proxy(request.url, proxies)","file":"src/requests/adapters.py","line":583,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/utils.py\nLine 885: def select_proxy(url: str, proxies: dict[str, str] | None) -> str | None:","file":"src/requests/utils.py","line":885,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/utils.py\nLine 886: \"\"\"Select a proxy for the url, if applicable.","file":"src/requests/utils.py","line":886,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_utils.py\nLine 36: select_proxy,","file":"tests/test_utils.py","line":36,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_utils.py\nLine 565: assert select_proxy(url, proxies) == expected","file":"tests/test_utils.py","line":565,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Ich schreibe gerade Tests für die Dateiextraktion. Kannst du mir zeigen, wie man prüft, ob ein Pfad innerhalb eines Archivs korrekt nach der Extraktion wiederhergestellt wurde?","query":"extract zipped paths","file":"tests/test_utils.py","symbol":"test_zipped_paths_extracted","line":355,"lang":"de","candidates":[{"text":"File: HISTORY.md\nLine 79: - CVE-2026-25645 ``requests.utils.extract_zipped_paths`` now extracts","file":"HISTORY.md","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 333: - Fixed defect in `extract_zipped_paths` which could result in an infinite loop","file":"HISTORY.md","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 290: def extract_zipped_paths(path: str) -> str:","file":"src/requests/utils.py","line":290,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 21: extract_zipped_paths,","file":"tests/test_utils.py","line":21,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_utils.py\nLine 342: class TestExtractZippedPaths:","file":"tests/test_utils.py","line":342,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 353: assert path == extract_zipped_paths(path)","file":"tests/test_utils.py","line":353,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 355: def test_zipped_paths_extracted(self, tmpdir):","file":"tests/test_utils.py","line":355,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 362: extracted_path = extract_zipped_paths(zipped_path)","file":"tests/test_utils.py","line":362,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 373: assert extract_zipped_paths(path) == path","file":"tests/test_utils.py","line":373,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"find logic that converts a mapping into a case insensitive dictionary for http requests","query":"case insensitive headers","file":"src/requests/models.py","symbol":"prepare_headers","line":565,"lang":"en","candidates":[{"text":"File: HISTORY.md\nLine 968: - Change built-in CaseInsensitiveDict (used for headers) to use","file":"HISTORY.md","line":968,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1317: - The `CaseInsensitiveDict` used for HTTP headers now behaves like a","file":"HISTORY.md","line":1317,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1564: - Case-Insensitive Content-Encoding headers","file":"HISTORY.md","line":1564,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 381: # Make headers case-insensitive.","file":"src/requests/adapters.py","line":381,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 382: response.headers = CaseInsensitiveDict(getattr(resp, \"headers\", {}))","file":"src/requests/adapters.py","line":382,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 401: headers: CaseInsensitiveDict[str | bytes]","file":"src/requests/models.py","line":401,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/models.py\nLine 568: self.headers = CaseInsensitiveDict()","file":"src/requests/models.py","line":568,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 741: headers: CaseInsensitiveDict[str]","file":"src/requests/models.py","line":741,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 773: #: Case-insensitive Dictionary of Response Headers.","file":"src/requests/models.py","line":773,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 776: self.headers = CaseInsensitiveDict()","file":"src/requests/models.py","line":776,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 414: headers: CaseInsensitiveDict[str]","file":"src/requests/sessions.py","line":414,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 443: #: A case-insensitive dictionary of headers to be sent on each","file":"src/requests/sessions.py","line":443,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 548: request.headers, self.headers, dict_class=CaseInsensitiveDict","file":"src/requests/sessions.py","line":548,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 569: def get_encoding_from_headers(headers: CaseInsensitiveDict[str]) -> str | None:","file":"src/requests/utils.py","line":569,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 951: def default_headers() -> CaseInsensitiveDict[str]:","file":"src/requests/utils.py","line":951,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2630: r.headers = CaseInsensitiveDict({\"Location\": \"/\"})","file":"tests/test_requests.py","line":2630,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"証明書関連のビルドで、ルートとなる秘密鍵と証明書を指定している箇所はどこ?","query":"ca-private.key ca.crt","file":"tests/certs/expired/ca/Makefile","symbol":"root_files","line":3,"lang":"ja","candidates":[{"text":"File: tests/certs/expired/ca/Makefile\nLine 3: root_files = ca-private.key ca.crt","file":"tests/certs/expired/ca/Makefile","line":3,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/certs/expired/ca/Makefile\nLine 9: openssl req -x509 -sha256 -days 7300 -key ca-private.key -out ca.crt -config ca.cnf","file":"tests/certs/expired/ca/Makefile","line":9,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/expired/ca/Makefile\nLine 13: rm -f cacert.pem ca.crt ca-private.key *.csr","file":"tests/certs/expired/ca/Makefile","line":13,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/expired/server/Makefile\nLine 10: openssl x509 -req -CA ../ca/ca.crt -CAkey ../ca/ca-private.key -in server.csr -outform PEM -out server.pem -days 0 -CAcreateserial","file":"tests/certs/expired/server/Makefile","line":10,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/mtls/client/Makefile\nLine 10: openssl x509 -req -CA ./ca/ca.crt -CAkey ./ca/ca-private.key -in client.csr -outform PEM -out client.pem -days 730 -CAcreateserial","file":"tests/certs/mtls/client/Makefile","line":10,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/valid/server/Makefile\nLine 10: openssl x509 -req -CA ../ca/ca.crt -CAkey ../ca/ca-private.key -in server.csr -outform PEM -out server.pem -extfile cert.cnf -extensions v3_ca -days 7200 -CAcreateserial","file":"tests/certs/valid/server/Makefile","line":10,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"¿Cómo se procesan los encabezados de enlaces para convertirlos en una lista de diccionarios?","query":"parse link headers","file":"src/requests/utils.py","symbol":"parse_header_links","line":965,"lang":"es","candidates":[{"text":"File: HISTORY.md\nLine 539: - Parsing empty `Link` headers with `parse_header_links()` no longer","file":"HISTORY.md","line":539,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1230: - Fix how Link headers are parsed using the regular expression library","file":"HISTORY.md","line":1230,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/advanced.rst\nLine 958: Requests will automatically parse these link headers and make them easily consumable::","file":"docs/user/advanced.rst","line":958,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 966: \"\"\"Return a list of parsed link headers proxies.","file":"src/requests/utils.py","line":966,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"「guess_filename」関数が、有効な名前を持つオブジェクトを受け取った場合、その名前をそのまま返し、かつ返り値の型が期待通りであることを確認するテストケースを実行したい。","query":"test guess_filename valid","file":"tests/test_utils.py","symbol":"test_guess_filename_valid","line":335,"lang":"ja","candidates":[{"text":"File: tests/test_utils.py\nLine 325: def test_guess_filename_invalid(self, value):","file":"tests/test_utils.py","line":325,"lexical":0.65,"target":true},{"text":"File: tests/test_utils.py\nLine 335: def test_guess_filename_valid(self, value, expected_type):","file":"tests/test_utils.py","line":335,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"busca o método para recuperar um valor usando uma chave com retorno padrão","query":"get default key","file":"src/requests/structures.py","symbol":"get","line":127,"lang":"pt","candidates":[{"text":"File: src/requests/structures.py\nLine 124: def get(self, key: str, default: None = None) -> _VT | None: ...","file":"src/requests/structures.py","line":124,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/structures.py\nLine 127: def get(self, key: str, default: _D | _VT) -> _D | _VT: ...","file":"src/requests/structures.py","line":127,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 129: def get(self, key: str, default: _D | None = None) -> _VT | _D | None:","file":"src/requests/structures.py","line":129,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 130: return self.__dict__.get(key, default)","file":"src/requests/structures.py","line":130,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_structures.py\nLine 90: def test_getattr_default(self, key, value):","file":"tests/test_structures.py","line":90,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"générer un certificat serveur expiré avec sa chaîne de certification","query":"expired server cert","file":"tests/certs/expired/server/Makefile","symbol":"server.pem","line":9,"lang":"fr","candidates":[{"text":"File: tests/certs/README.md\nLine 8: * [expired](./expired) server certificate with a valid certificate authority","file":"tests/certs/README.md","line":8,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 2943: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":2943,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2944: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":2944,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2976: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":2976,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2977: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":2977,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3043: cert_chain=\"tests/certs/expired/server/server.pem\",","file":"tests/test_requests.py","line":3043,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3044: keyfile=\"tests/certs/expired/server/server.key\",","file":"tests/test_requests.py","line":3044,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Verify that the mechanism for executing a sequence of registered callbacks on a specific event type returns the expected output when passed a collection of functions and a payload.","query":"dispatch hook response","file":"tests/test_hooks.py","symbol":"test_hooks","line":17,"lang":"en","candidates":[{"text":"File: src/requests/sessions.py\nLine 791: r = dispatch_hook(\"response\", hooks, r, **kwargs)","file":"src/requests/sessions.py","line":791,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_hooks.py\nLine 18: assert hooks.dispatch_hook(\"response\", {\"response\": hooks_list}, \"Data\") == result","file":"tests/test_hooks.py","line":18,"lexical":0.65,"target":true}]}
{"site":"project_search","repo":"requests","task":"¿Cómo genero la documentación en formato manual?","query":"man documentation","file":"docs/Makefile","symbol":".PHONY","line":154,"lang":"es","candidates":[{"text":"File: docs/conf.py\nLine 249: (root_doc, \"Requests.tex\", u\"Requests Documentation\", u\"Kenneth Reitz\", \"manual\")","file":"docs/conf.py","line":249,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/conf.py\nLine 277: man_pages = [(root_doc, \"requests\", u\"Requests Documentation\", [author], 1)]","file":"docs/conf.py","line":277,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 3: REM Command file for Sphinx documentation","file":"docs/make.bat","line":3,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"ドキュメントの構成を確認しています。これより下にある、より基底となるクラス群の設計思想について詳しく教えてください。","query":"low level classes","file":"docs/api.rst","symbol":"Lower-Level Classes","line":50,"lang":"ja","candidates":[{"text":"File: docs/api.rst\nLine 50: Lower-Level Classes","file":"docs/api.rst","line":50,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/api.rst\nLine 61: Lower-Lower-Level Classes","file":"docs/api.rst","line":61,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"我想看看在处理响应体时,有没有办法可以分块读取数据。能不能帮我找一下那个支持设置块大小并返回字节迭代器的实现?","query":"iter content chunk","file":"src/requests/models.py","symbol":"iter_content","line":907,"lang":"zh","candidates":[{"text":"File: HISTORY.md\nLine 1674: - Speed fix for non-iterated content chunks.","file":"HISTORY.md","line":1674,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/api.rst\nLine 161: for chunk in r.iter_content(8192):","file":"docs/api.rst","line":161,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/advanced.rst\nLine 384: case you can iterate chunk-by-chunk by calling ``iter_content`` with a ``chunk_size``","file":"docs/user/advanced.rst","line":384,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 186: for chunk in r.iter_content(chunk_size=128):","file":"docs/user/quickstart.rst","line":186,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 970: chunks = iter_slices(content, chunk_size)","file":"src/requests/models.py","line":970,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/models.py\nLine 1012: for chunk in self.iter_content(","file":"src/requests/models.py","line":1012,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 1046: self._content = b\"\".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b\"\"","file":"src/requests/models.py","line":1046,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1477: chunks = r.iter_content(decode_unicode=True)","file":"tests/test_requests.py","line":1477,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1484: chunks = r.iter_content(decode_unicode=True)","file":"tests/test_requests.py","line":1484,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1514: chunks = r.iter_content(1)","file":"tests/test_requests.py","line":1514,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1519: chunks = r.iter_content(None)","file":"tests/test_requests.py","line":1519,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1525: chunks = r.iter_content(\"1024\")","file":"tests/test_requests.py","line":1525,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Il semble y avoir un problème lors de la création d'un gestionnaire pour les proxys de type SOCKS : l'instanciation du gestionnaire spécifique semble incomplète ou mal gérée dans la logique de création.","query":"SOCKSProxyManager socks","file":"src/requests/adapters.py","symbol":"proxy_manager_for","line":269,"lang":"fr","candidates":[{"text":"File: src/requests/adapters.py\nLine 63: from urllib3.contrib.socks import SOCKSProxyManager # type: ignore[assignment]","file":"src/requests/adapters.py","line":63,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/adapters.py\nLine 66: def SOCKSProxyManager(*args: Any, **kwargs: Any) -> None:","file":"src/requests/adapters.py","line":66,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 285: manager = self.proxy_manager[proxy] = SOCKSProxyManager(","file":"src/requests/adapters.py","line":285,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"trouve l'erreur quand le nombre de redirections est dépassé","query":"too many redirects","file":"src/requests/exceptions.py","symbol":"TooManyRedirects","line":106,"lang":"fr","candidates":[{"text":"File: docs/api.rst\nLine 34: .. autoexception:: requests.TooManyRedirects","file":"docs/api.rst","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 566: :exc:`~requests.exceptions.TooManyRedirects` exception is raised.","file":"docs/user/quickstart.rst","line":566,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/__init__.py\nLine 181: TooManyRedirects,","file":"src/requests/__init__.py","line":181,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/__init__.py\nLine 200: \"TooManyRedirects\",","file":"src/requests/__init__.py","line":200,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 106: class TooManyRedirects(RequestException):","file":"src/requests/exceptions.py","line":106,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/exceptions.py\nLine 107: \"\"\"Too many redirects.\"\"\"","file":"src/requests/exceptions.py","line":107,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 34: TooManyRedirects,","file":"src/requests/sessions.py","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 217: raise TooManyRedirects(","file":"src/requests/sessions.py","line":217,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 485: #: limit, a :class:`TooManyRedirects` exception is raised.","file":"src/requests/sessions.py","line":485,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 48: TooManyRedirects,","file":"tests/test_requests.py","line":48,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 251: def test_HTTP_302_TOO_MANY_REDIRECTS(self, httpbin):","file":"tests/test_requests.py","line":251,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 254: except TooManyRedirects as e:","file":"tests/test_requests.py","line":254,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 260: pytest.fail(\"Expected redirect to raise TooManyRedirects but it did not\")","file":"tests/test_requests.py","line":260,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 262: def test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS(self, httpbin):","file":"tests/test_requests.py","line":262,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 267: except TooManyRedirects as e:","file":"tests/test_requests.py","line":267,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Where is the error raised when a provided web address is malformed?","query":"invalid url error","file":"src/requests/exceptions.py","symbol":"InvalidURL","line":118,"lang":"en","candidates":[{"text":"File: HISTORY.md\nLine 1745: - ValueError for invalid schema URLs.","file":"HISTORY.md","line":1745,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 2000: - URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as","file":"HISTORY.md","line":2000,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 118: class InvalidURL(RequestException, ValueError):","file":"src/requests/exceptions.py","line":118,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 589: # Inputting a URL that cannot be parsed should raise an InvalidURL error","file":"tests/test_requests.py","line":589,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"find the recipe for generating the documentation help command","query":"help documentation","file":"docs/Makefile","symbol":".PHONY","line":91,"lang":"en","candidates":[{"text":"File: docs/Makefile\nLine 107: \"~/Library/Documentation/Help or install it in your application\" \\","file":"docs/Makefile","line":107,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/conf.py\nLine 120: # The theme to use for HTML and HTML Help pages. See the documentation for","file":"docs/conf.py","line":120,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"HTTP 요청에 포함된 쿠키 데이터를 처리하여 적절히 준비하는 함수를 찾아주세요. 이 함수는 기존에 설정된 'Cookie' 헤더가 있을 경우 이를 재생성하지 않고, 새로운 쿠키가 제공되면 이를 기반으로 헤더를 생성해야 합니다. 또한, 여러 가지 형식(dict, CookieJar 등)의 쿠키 입력을 지원해야 합니다.","query":"prepare cookies","file":"src/requests/models.py","symbol":"prepare_cookies","line":699,"lang":"ko","candidates":[{"text":"File: HISTORY.md\nLine 1299: - Allow copying of PreparedRequests without headers/cookies.","file":"HISTORY.md","line":1299,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/auth.py\nLine 305: prep.prepare_cookies(cookie_jar)","file":"src/requests/auth.py","line":305,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 415: # after prepare_cookies is called","file":"src/requests/models.py","line":415,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/models.py\nLine 443: self.prepare_cookies(cookies)","file":"src/requests/models.py","line":443,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 699: def prepare_cookies(","file":"src/requests/models.py","line":699,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 709: to ``prepare_cookies`` will have no actual effect, unless the \"Cookie\"","file":"src/requests/models.py","line":709,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 266: cookie_jar = cast(\"CookieJar\", prepared_request._cookies)","file":"src/requests/sessions.py","line":266,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 269: prepared_request.prepare_cookies(cookie_jar)","file":"src/requests/sessions.py","line":269,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 303: extract_cookies_to_jar(self.cookies, prepared_request, resp.raw)","file":"src/requests/sessions.py","line":303,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Le processus de génération de l'aide via Sphinx ne semble pas automatiser la création du fichier de collection, ce qui oblige l'utilisateur à exécuter manuellement les commandes de génération de collection et de visualisation après la compilation.","query":"sphinx help build","file":"docs/Makefile","symbol":"qthelp","line":92,"lang":"fr","candidates":[{"text":"File: docs/Makefile\nLine 86: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp","file":"docs/Makefile","line":86,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/Makefile\nLine 93: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp","file":"docs/Makefile","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/Makefile\nLine 103: $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp","file":"docs/Makefile","line":103,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/Makefile\nLine 112: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp","file":"docs/Makefile","line":112,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/make.bat\nLine 116: %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp","file":"docs/make.bat","line":116,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/make.bat\nLine 125: %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp","file":"docs/make.bat","line":125,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/make.bat\nLine 137: %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp","file":"docs/make.bat","line":137,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Wo wird diese Methode aufgerufen, die immer eine Ausnahme auslöst?","query":"raise error","file":"tests/test_utils.py","symbol":"tell","line":80,"lang":"de","candidates":[{"text":"File: HISTORY.md\nLine 542: archive would raise an `IOError`.","file":"HISTORY.md","line":542,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 581: - Fixed issue where Requests would raise `ConnectionError` instead of","file":"HISTORY.md","line":581,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 750: directories Requests now raises `IOError`, rather than failing at","file":"HISTORY.md","line":750,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 853: raise an `AttributeError`.","file":"HISTORY.md","line":853,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 912: streamed bodies would raise `AttributeError`. This bug was","file":"HISTORY.md","line":912,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 976: - Raise a ProxyError for proxy related connection issues.","file":"HISTORY.md","line":976,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1055: - `requests.utils.get_netrc_auth` now takes an `raise_errors` kwarg,","file":"HISTORY.md","line":1055,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1195: - Only catch HTTPErrors in raise\\_for\\_status (\\#2382)","file":"HISTORY.md","line":1195,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1284: - Capture and re-raise urllib3 ProtocolError","file":"HISTORY.md","line":1284,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1350: - New exception: `ContentDecodingError`. Raised instead of `urllib3`","file":"HISTORY.md","line":1350,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1433: encoding will now raise a Requests `ChunkedEncodingError` instead.","file":"HISTORY.md","line":1433,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 2077: - Response.raise\\_for\\_status() (Raises stored HTTPError)","file":"HISTORY.md","line":2077,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 234: encoding will now raise a Requests ``ChunkedEncodingError`` instead.","file":"docs/api.rst","line":234,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 156: attempting ``r.json()`` raises ``requests.exceptions.JSONDecodeError``. This wrapper exception","file":"docs/user/quickstart.rst","line":156,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 395: raise http_error","file":"docs/user/quickstart.rst","line":395,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 556: Requests will raise a :exc:`~requests.exceptions.ConnectionError` exception.","file":"docs/user/quickstart.rst","line":556,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 559: raise an :exc:`~requests.exceptions.HTTPError` if the HTTP request","file":"docs/user/quickstart.rst","line":559,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 151: raise NotImplementedError","file":"src/requests/adapters.py","line":151,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 155: raise NotImplementedError","file":"src/requests/adapters.py","line":155,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 332: raise OSError(","file":"src/requests/adapters.py","line":332,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 356: raise OSError(","file":"src/requests/adapters.py","line":356,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 361: raise OSError(","file":"src/requests/adapters.py","line":361,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 686: raise ValueError(","file":"src/requests/adapters.py","line":686,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 711: raise ConnectionError(err, request=request)","file":"src/requests/adapters.py","line":711,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 720: raise RetryError(e, request=request)","file":"src/requests/adapters.py","line":720,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 723: raise ProxyError(e, request=request)","file":"src/requests/adapters.py","line":723,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 727: raise SSLError(e, request=request)","file":"src/requests/adapters.py","line":727,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 729: raise ConnectionError(e, request=request)","file":"src/requests/adapters.py","line":729,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 732: raise ConnectionError(e, request=request)","file":"src/requests/adapters.py","line":732,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 735: raise ProxyError(e)","file":"src/requests/adapters.py","line":735,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 740: raise SSLError(e, request=request)","file":"src/requests/adapters.py","line":740,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/auth.py\nLine 82: raise NotImplementedError(\"Auth hooks must be callable.\")","file":"src/requests/auth.py","line":82,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"HTTP リクエストを送信する際に、指定されたメソッド(GET、POSTなど)とURLを用いてリクエストオブジェクトを構築し、サーバーへ送信してレスポンスを取得したい。クエリパラメータ、ボディデータ(JSONまたは通常データ)、カスタムヘッダー、Cookieなどをオプションで指定できる機能を探している。","query":"send http request","file":"src/requests/api.py","symbol":"request","line":24,"lang":"ja","candidates":[{"text":"File: README.md\nLine 26: Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data — but nowadays, just use the `json` method!","file":"README.md","line":26,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/community/out-there.rst\nLine 10: - `Sending JSON in Requests <https://www.coglib.com/~icordasc/blog/2014/11/sending-json-in-requests.html>`_","file":"docs/community/out-there.rst","line":10,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/index.rst\nLine 53: **Requests** allows you to send HTTP/1.1 requests extremely easily.","file":"docs/index.rst","line":53,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/api.py\nLine 36: :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.","file":"src/requests/api.py","line":36,"lexical":0.55,"target":true},{"text":"File: src/requests/models.py\nLine 410: #: HTTP URL to send the request to.","file":"src/requests/models.py","line":410,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 617: def test_respect_proxy_env_on_send_self_prepared_request(self, httpbin):","file":"tests/test_requests.py","line":617,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 624: def test_respect_proxy_env_on_send_session_prepared_request(self, httpbin):","file":"tests/test_requests.py","line":624,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 1604: def test_cannot_send_unprepared_requests(self, httpbin):","file":"tests/test_requests.py","line":1604,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"latex 빌드 규칙 만들기","query":"latex build","file":"docs/Makefile","symbol":".PHONY","line":126,"lang":"ko","candidates":[{"text":"File: docs/Makefile\nLine 128: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex","file":"docs/Makefile","line":128,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/Makefile\nLine 130: @echo \"Build finished; the LaTeX files are in $(BUILDDIR)/latex.\"","file":"docs/Makefile","line":130,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 136: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex","file":"docs/Makefile","line":136,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 138: $(MAKE) -C $(BUILDDIR)/latex all-pdf","file":"docs/Makefile","line":138,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 139: @echo \"pdflatex finished; the PDF files are in $(BUILDDIR)/latex.\"","file":"docs/Makefile","line":139,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 143: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex","file":"docs/Makefile","line":143,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 145: $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja","file":"docs/Makefile","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 146: @echo \"pdflatex finished; the PDF files are in $(BUILDDIR)/latex.\"","file":"docs/Makefile","line":146,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 153: %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex","file":"docs/make.bat","line":153,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 156: echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.","file":"docs/make.bat","line":156,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 161: %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex","file":"docs/make.bat","line":161,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 162: cd %BUILDDIR%/latex","file":"docs/make.bat","line":162,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 166: echo.Build finished; the PDF files are in %BUILDDIR%/latex.","file":"docs/make.bat","line":166,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 171: %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex","file":"docs/make.bat","line":171,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 172: cd %BUILDDIR%/latex","file":"docs/make.bat","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 176: echo.Build finished; the PDF files are in %BUILDDIR%/latex.","file":"docs/make.bat","line":176,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Je cherche la logique qui transforme les données d'entrée en un format encodable pour les requêtes. Peux-tu me montrer comment sont gérés les dictionnaires ou les listes de tuples pour la conversion des paramètres ?","query":"encode parameters","file":"src/requests/models.py","symbol":"_encode_params","line":151,"lang":"fr","candidates":[{"text":"File: src/requests/models.py\nLine 154: \"\"\"Encode parameters in a piece of data.","file":"src/requests/models.py","line":154,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/models.py\nLine 156: Will successfully encode parameters when passed as a dict or a list of","file":"src/requests/models.py","line":156,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"mostra como disparar uma requisição de exclusão","query":"send delete request","file":"src/requests/api.py","symbol":"delete","line":171,"lang":"pt","candidates":[{"text":"File: src/requests/api.py\nLine 172: r\"\"\"Sends a DELETE request.","file":"src/requests/api.py","line":172,"lexical":0.55,"target":true},{"text":"File: src/requests/sessions.py\nLine 743: r\"\"\"Sends a DELETE request. Returns :class:`Response` object.","file":"src/requests/sessions.py","line":743,"lexical":0.55,"target":false}]}
{"site":"project_search","repo":"requests","task":"ドキュメント生成のプロセスを確認しています。Sphinxを使って疑似的なXML形式のファイルを出力する手順はどこに定義されていますか?","query":"pseudoxml sphinx","file":"docs/Makefile","symbol":"pseudoxml","line":213,"lang":"ja","candidates":[{"text":"File: docs/Makefile\nLine 214: $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml","file":"docs/Makefile","line":214,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/make.bat\nLine 256: %SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml","file":"docs/make.bat","line":256,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"객체 직렬화를 위해 현재 인스턴스의 속성들을 사전 형태로 추출하는 로직을 확인하고 싶어요. 정의된 속성 목록을 바탕으로 상태를 어떻게 구성하는지 설명해 주세요.","query":"get state dict","file":"src/requests/sessions.py","symbol":"__getstate__","line":899,"lang":"ko","candidates":[{"text":"File: src/requests/adapters.py\nLine 223: def __getstate__(self) -> dict[str, Any]:","file":"src/requests/adapters.py","line":223,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 454: def __getstate__(self) -> dict[str, Any]:","file":"src/requests/cookies.py","line":454,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 818: def __getstate__(self) -> dict[str, Any]:","file":"src/requests/models.py","line":818,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 899: def __getstate__(self) -> dict[str, Any]:","file":"src/requests/sessions.py","line":899,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"How are request parameters encoded into a query string?","query":"encode params","file":"src/requests/models.py","symbol":"_encode_params","line":148,"lang":"en","candidates":[{"text":"File: HISTORY.md\nLine 1677: - Lazily encode data, params, files.","file":"HISTORY.md","line":1677,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 134: def _encode_params(data: str) -> str: ...","file":"src/requests/models.py","line":134,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/models.py\nLine 138: def _encode_params(data: bytes) -> bytes: ...","file":"src/requests/models.py","line":138,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 142: def _encode_params(","file":"src/requests/models.py","line":142,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 148: def _encode_params(data: _t.KVDataType) -> str: ...","file":"src/requests/models.py","line":148,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 151: def _encode_params(","file":"src/requests/models.py","line":151,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 552: enc_params = self._encode_params(params)","file":"src/requests/models.py","line":552,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 640: body = self._encode_params(raw_data)","file":"src/requests/models.py","line":640,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 178: def test_params_bytes_are_encoded(self):","file":"tests/test_requests.py","line":178,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Como é validada a resposta para saber se não houve erro de cliente ou servidor?","query":"status code error","file":"src/requests/models.py","symbol":"__bool__","line":837,"lang":"pt","candidates":[{"text":"File: src/requests/models.py\nLine 1162: f\"{self.status_code} Client Error: {reason} for url: {self.url}\"","file":"src/requests/models.py","line":1162,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/models.py\nLine 1167: f\"{self.status_code} Server Error: {reason} for url: {self.url}\"","file":"src/requests/models.py","line":1167,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"find the logic that converts input data into a format suitable for transmission","query":"encode parameters","file":"src/requests/models.py","symbol":"_encode_params","line":142,"lang":"en","candidates":[{"text":"File: src/requests/models.py\nLine 154: \"\"\"Encode parameters in a piece of data.","file":"src/requests/models.py","line":154,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/models.py\nLine 156: Will successfully encode parameters when passed as a dict or a list of","file":"src/requests/models.py","line":156,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"How does the internal helper handle converting raw bytes for the request parameters?","query":"encode bytes params","file":"src/requests/models.py","symbol":"_encode_params","line":138,"lang":"en","candidates":[{"text":"File: src/requests/models.py\nLine 138: def _encode_params(data: bytes) -> bytes: ...","file":"src/requests/models.py","line":138,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 178: def test_params_bytes_are_encoded(self):","file":"tests/test_requests.py","line":178,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"当在处理请求时,获取当前请求所属的主机名功能似乎只是简单地调用了底层的获取逻辑,这是否会导致在某些复杂的 Cookie 作用域解析场景下无法正确返回预期的域名?","query":"get host","file":"src/requests/cookies.py","symbol":"host","line":110,"lang":"zh","candidates":[{"text":"File: docs/user/authentication.rst\nLine 40: attempt to get the authentication credentials for the URL's hostname from the","file":"docs/user/authentication.rst","line":40,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 226: * Authorization headers will be removed if you get redirected off-host.","file":"docs/user/quickstart.rst","line":226,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 54: def get_host(self) -> str:","file":"src/requests/cookies.py","line":54,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/cookies.py\nLine 57: def get_origin_req_host(self) -> str:","file":"src/requests/cookies.py","line":57,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 58: return self.get_host()","file":"src/requests/cookies.py","line":58,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 63: if not self._r.headers.get(\"Host\"):","file":"src/requests/cookies.py","line":63,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 107: return self.get_origin_req_host()","file":"src/requests/cookies.py","line":107,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 111: return self.get_host()","file":"src/requests/cookies.py","line":111,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 474: def _get_idna_encoded_host(host: str) -> str:","file":"src/requests/models.py","line":474,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 530: host = self._get_idna_encoded_host(host)","file":"src/requests/models.py","line":530,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 325: # If we get redirected to a new host, we should strip out any","file":"src/requests/sessions.py","line":325,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 400: assert r.history[1].request.url == f'http://{host}:{port}/get#relevant-section'","file":"tests/test_lowlevel.py","line":400,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 577: r = requests.Request(\"GET\", \"http://localhost\", auth=auth)","file":"tests/test_requests.py","line":577,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 1048: requests.get(f\"https://localhost:{port}/\", verify=ca_bundle)","file":"tests/test_requests.py","line":1048,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_requests.py\nLine 1755: assert s.get_adapter(url_extended_hostname) is adapter","file":"tests/test_requests.py","line":1755,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_testserver.py\nLine 49: r = requests.get(f\"http://{host}:{port}\")","file":"tests/test_testserver.py","line":49,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/test_testserver.py\nLine 58: r = requests.get(f\"http://{host}:{port}\")","file":"tests/test_testserver.py","line":58,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"ソケットから受信したデータをそのまま送り返すテスト用ハンドラを探して","query":"echo response handler","file":"tests/test_lowlevel.py","symbol":"echo_response_handler","line":12,"lang":"ja","candidates":[{"text":"File: tests/test_lowlevel.py\nLine 12: def echo_response_handler(sock):","file":"tests/test_lowlevel.py","line":12,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_lowlevel.py\nLine 66: server = Server(echo_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":66,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 84: server = Server(echo_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":84,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_lowlevel.py\nLine 345: server = Server(echo_response_handler, wait_to_close_event=close_server)","file":"tests/test_lowlevel.py","line":345,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"帮我找一下关于如何安装这个库的说明文档。我需要确认一下在手动部署环境时具体的步骤。","query":"install requests","file":"docs/user/install.rst","symbol":"Installation of Requests","line":3,"lang":"zh","candidates":[{"text":"File: HISTORY.md\nLine 383: You can also install `chardet` while installing requests by","file":"HISTORY.md","line":383,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 387: pip install \"requests[use_chardet_on_py3]\"","file":"HISTORY.md","line":387,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 397: - The `requests[security]` extra has been converted to a no-op install.","file":"HISTORY.md","line":397,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 576: - Running `$ python -m requests.help` now includes the installed","file":"HISTORY.md","line":576,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 957: `$ pip install requests[socks]`)","file":"HISTORY.md","line":957,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1129: - Fix error when requests is an `install_requires` dependency and","file":"HISTORY.md","line":1129,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1282: `$ pip install requests[security]`","file":"HISTORY.md","line":1282,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 30: ## Installing Requests and Supported Versions","file":"README.md","line":30,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 35: $ python -m pip install requests","file":"README.md","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/community/faq.rst\nLine 15: package is installed, requests also decodes Brotli-encoded responses.","file":"docs/community/faq.rst","line":15,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 287: once for each Requests version. When ``certifi`` was not installed, this led to","file":"docs/user/advanced.rst","line":287,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 683: $ python -m pip install 'requests[socks]'","file":"docs/user/advanced.rst","line":683,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 716: If ``chardet`` is installed, ``requests`` uses it, however for python3","file":"docs/user/advanced.rst","line":716,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 721: When you install ``requests`` without specifying ``[use_chardet_on_py3]`` extra,","file":"docs/user/advanced.rst","line":721,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 722: and ``chardet`` is not already installed, ``requests`` uses ``charset-normalizer``","file":"docs/user/advanced.rst","line":722,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/install.rst\nLine 3: Installation of Requests","file":"docs/user/install.rst","line":3,"lexical":0.6000000000000001,"target":true},{"text":"File: docs/user/install.rst\nLine 6: This part of the documentation covers the installation of Requests.","file":"docs/user/install.rst","line":6,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/user/install.rst\nLine 10: $ python -m pip install requests","file":"docs/user/install.rst","line":10,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/user/install.rst\nLine 13: To install Requests, simply run this simple command in your terminal of choice::","file":"docs/user/install.rst","line":13,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/user/install.rst\nLine 15: $ python -m pip install requests","file":"docs/user/install.rst","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 13: * Requests is :ref:`installed <install>`","file":"docs/user/quickstart.rst","line":13,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"새로운 요청을 보낼 때 사용될 헤더 정보를 가져오는 과정에서, 내부 저장된 헤더 데이터가 올바르게 반환되는지 확인이 필요합니다.","query":"get new headers","file":"src/requests/cookies.py","symbol":"get_new_headers","line":98,"lang":"ko","candidates":[{"text":"File: src/requests/cookies.py\nLine 39: the new headers via `get_new_headers()` and interpreting them appropriately. You","file":"src/requests/cookies.py","line":39,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/cookies.py\nLine 87: return self._r.headers.get(name, self._new_headers.get(name, default)) # type: ignore[return-value]","file":"src/requests/cookies.py","line":87,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 98: def get_new_headers(self) -> dict[str, str]:","file":"src/requests/cookies.py","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 161: return r.get_new_headers().get(\"Cookie\")","file":"src/requests/cookies.py","line":161,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"상대 리디렉션이 50번 발생하도록 설정된 URL로 GET 요청을 보냈을 때, 리디렉션 한도 초과로 인해 TooManyRedirects 예외가 발생해야 합니다. 예외 객체의 request.url과 response.url은 리디렉션 기준이 되는 20회 리디렉션 URL과 일치해야 하며, 리디렉션 이력(history)의 길이는 30이어야 합니다.","query":"302 too many redirects","file":"tests/test_requests.py","symbol":"test_HTTP_302_TOO_MANY_REDIRECTS","line":251,"lang":"ko","candidates":[{"text":"File: tests/test_requests.py\nLine 251: def test_HTTP_302_TOO_MANY_REDIRECTS(self, httpbin):","file":"tests/test_requests.py","line":251,"lexical":0.5,"target":true},{"text":"File: tests/test_requests.py\nLine 262: def test_HTTP_302_TOO_MANY_REDIRECTS_WITH_PARAMS(self, httpbin):","file":"tests/test_requests.py","line":262,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"如何通过命令行生成电子书格式的文档?","query":"build epub","file":"docs/Makefile","symbol":"epub","line":121,"lang":"zh","candidates":[{"text":"File: docs/Makefile\nLine 122: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub","file":"docs/Makefile","line":122,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/Makefile\nLine 124: @echo \"Build finished. The epub file is in $(BUILDDIR)/epub.\"","file":"docs/Makefile","line":124,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 145: %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub","file":"docs/make.bat","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 148: echo.Build finished. The epub file is in %BUILDDIR%/epub.","file":"docs/make.bat","line":148,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"PUTとPATCHリクエストにおけるJSONボディとクエリパラメータの型定義を確認したい。","query":"kwargs type","file":"src/requests/_types.py","symbol":"DataKwargs","line":184,"lang":"ja","candidates":[{"text":"File: src/requests/_types.py\nLine 155: # TypedDicts for Unpack kwargs (PEP 692)","file":"src/requests/_types.py","line":155,"lexical":0.6000000000000001,"target":true},{"text":"File: src/requests/_types.py\nLine 157: class BaseRequestKwargs(TypedDict, total=False):","file":"src/requests/_types.py","line":157,"lexical":0.6000000000000001,"target":false},{"text":"File: src/requests/api.py\nLine 25: method: str, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]","file":"src/requests/api.py","line":25,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 75: url: _t.UriType, params: _t.ParamsType = None, **kwargs: Unpack[_t.GetKwargs]","file":"src/requests/api.py","line":75,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 90: def options(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":90,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 102: def head(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":102,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 138: url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]","file":"src/requests/api.py","line":138,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 155: url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]","file":"src/requests/api.py","line":155,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/api.py\nLine 171: def delete(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":171,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 673: def options(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":673,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 684: def head(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":684,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 715: self, url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]","file":"src/requests/sessions.py","line":715,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 729: self, url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]","file":"src/requests/sessions.py","line":729,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/sessions.py\nLine 742: def delete(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":742,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Como funciona a leitura do corpo da resposta em bytes e o que acontece se eu tentar acessar de novo?","query":"response bytes content","file":"src/requests/models.py","symbol":"content","line":1035,"lang":"pt","candidates":[{"text":"File: HISTORY.md\nLine 1768: - `Response.content` is now bytes-only. (*Backwards Incompatible*)","file":"HISTORY.md","line":1768,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 200: transform the response content. If you really need access to the bytes as they","file":"docs/user/quickstart.rst","line":200,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 1036: \"\"\"Content of the response, in bytes.\"\"\"","file":"src/requests/models.py","line":1036,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"What does the texinfo target do?","query":"make texinfo","file":"docs/Makefile","symbol":".PHONY","line":160,"lang":"en","candidates":[{"text":"File: docs/Makefile\nLine 40: @echo \" texinfo to make Texinfo files\"","file":"docs/Makefile","line":40,"lexical":0.6000000000000001,"target":true},{"text":"File: docs/Makefile\nLine 41: @echo \" info to make Texinfo files and run them through makeinfo\"","file":"docs/Makefile","line":41,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/Makefile\nLine 171: @echo \"Running Texinfo files through makeinfo...\"","file":"docs/Makefile","line":171,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/Makefile\nLine 172: make -C $(BUILDDIR)/texinfo info","file":"docs/Makefile","line":172,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/Makefile\nLine 173: @echo \"makeinfo finished; the Info files are in $(BUILDDIR)/texinfo.\"","file":"docs/Makefile","line":173,"lexical":0.6000000000000001,"target":false},{"text":"File: docs/make.bat\nLine 33: echo. texinfo to make Texinfo files","file":"docs/make.bat","line":33,"lexical":0.6000000000000001,"target":false}]}
{"site":"project_search","repo":"requests","task":"find the class defining keyword arguments for making network requests","query":"request kwargs","file":"src/requests/_types.py","symbol":"RequestKwargs","line":170,"lang":"en","candidates":[{"text":"File: src/requests/_types.py\nLine 157: class BaseRequestKwargs(TypedDict, total=False):","file":"src/requests/_types.py","line":157,"lexical":0.5,"target":true},{"text":"File: src/requests/_types.py\nLine 170: class RequestKwargs(BaseRequestKwargs, total=False):","file":"src/requests/_types.py","line":170,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 171: \"\"\"kwargs for request(), options(), head(), delete().\"\"\"","file":"src/requests/_types.py","line":171,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 177: class GetKwargs(BaseRequestKwargs, total=False):","file":"src/requests/_types.py","line":177,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 181: class PostKwargs(BaseRequestKwargs, total=False):","file":"src/requests/_types.py","line":181,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 184: class DataKwargs(BaseRequestKwargs, total=False):","file":"src/requests/_types.py","line":184,"lexical":0.5,"target":false},{"text":"File: src/requests/adapters.py\nLine 599: def add_headers(self, request: PreparedRequest, **kwargs: Any) -> None:","file":"src/requests/adapters.py","line":599,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 25: method: str, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]","file":"src/requests/api.py","line":25,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 71: return session.request(method=method, url=url, **kwargs)","file":"src/requests/api.py","line":71,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 82: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/api.py","line":82,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 87: return request(\"get\", url, params=params, **kwargs)","file":"src/requests/api.py","line":87,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 90: def options(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":90,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 94: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/api.py","line":94,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 99: return request(\"options\", url, **kwargs)","file":"src/requests/api.py","line":99,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 102: def head(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":102,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 106: :param \\*\\*kwargs: Optional arguments that ``request`` takes. If","file":"src/requests/api.py","line":106,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 114: return request(\"head\", url, **kwargs)","file":"src/requests/api.py","line":114,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 129: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/api.py","line":129,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 134: return request(\"post\", url, data=data, json=json, **kwargs)","file":"src/requests/api.py","line":134,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 146: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/api.py","line":146,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 151: return request(\"put\", url, data=data, **kwargs)","file":"src/requests/api.py","line":151,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 163: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/api.py","line":163,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 168: return request(\"patch\", url, data=data, **kwargs)","file":"src/requests/api.py","line":168,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 171: def delete(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":171,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 175: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/api.py","line":175,"lexical":0.5,"target":false},{"text":"File: src/requests/api.py\nLine 180: return request(\"delete\", url, **kwargs)","file":"src/requests/api.py","line":180,"lexical":0.5,"target":false},{"text":"File: src/requests/exceptions.py\nLine 32: self.request = kwargs.pop(\"request\", None)","file":"src/requests/exceptions.py","line":32,"lexical":0.5,"target":false},{"text":"File: src/requests/sessions.py\nLine 132: def send(self, request: PreparedRequest, **kwargs: Any) -> Response: ...","file":"src/requests/sessions.py","line":132,"lexical":0.5,"target":false},{"text":"File: src/requests/sessions.py\nLine 666: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/sessions.py","line":666,"lexical":0.5,"target":false},{"text":"File: src/requests/sessions.py\nLine 671: return self.request(\"GET\", url, params=params, **kwargs)","file":"src/requests/sessions.py","line":671,"lexical":0.5,"target":false},{"text":"File: src/requests/sessions.py\nLine 673: def options(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":673,"lexical":0.5,"target":false},{"text":"File: src/requests/sessions.py\nLine 677: :param \\*\\*kwargs: Optional arguments that ``request`` takes.","file":"src/requests/sessions.py","line":677,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"find where to learn how to submit changes","query":"contributing guide","file":"docs/dev/contributing.rst","symbol":"Contributor's Guide","line":3,"lang":"en","candidates":[{"text":"File: docs/_templates/sidebar.html\nLine 22: <li><a href=\"{{ pathto('dev/contributing') }}\">{{ _('Contributors Guide') }}</a></li>","file":"docs/_templates/sidebar.html","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/dev/contributing.rst\nLine 11: This document lays out guidelines and advice for contributing to this project.","file":"docs/dev/contributing.rst","line":11,"lexical":0.6000000000000001,"target":true}]}
{"site":"project_search","repo":"requests","task":"Je cherche la méthode qui permet de vérifier si une requête a échoué en lançant une exception si le code de statut est une erreur client ou serveur. Peux-tu me montrer comment elle gère le décodage du message d'erreur ?","query":"raise HTTPError status","file":"src/requests/models.py","symbol":"raise_for_status","line":1144,"lang":"fr","candidates":[{"text":"File: HISTORY.md\nLine 1195: - Only catch HTTPErrors in raise\\_for\\_status (\\#2382)","file":"HISTORY.md","line":1195,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 2077: - Response.raise\\_for\\_status() (Raises stored HTTPError)","file":"HISTORY.md","line":2077,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"docs를 빌드할 때 HTML 페이지를 디렉토리 구조로 생성하는 타겟의 명령어를 찾아줘. 이 작업을 실행하면 빌드 결과물 위치가 어떻게 되는지 알려줘.","query":"dirhtml build","file":"docs/Makefile","symbol":"dirhtml","line":61,"lang":"ko","candidates":[{"text":"File: docs/Makefile\nLine 62: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml","file":"docs/Makefile","line":62,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/Makefile\nLine 64: @echo \"Build finished. The HTML pages are in $(BUILDDIR)/dirhtml.\"","file":"docs/Makefile","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 84: %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml","file":"docs/make.bat","line":84,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 87: echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.","file":"docs/make.bat","line":87,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"CookieJarの仕組みを修正しています。保存されているクッキーの中から値だけをリスト形式で一括取得している処理はどこにありますか?","query":"cookie jar values","file":"src/requests/cookies.py","symbol":"values","line":276,"lang":"ja","candidates":[{"text":"File: src/requests/cookies.py\nLine 586: :param cookie_dict: Dict of key/values to insert into CookieJar.","file":"src/requests/cookies.py","line":586,"lexical":0.65,"target":true},{"text":"File: src/requests/utils.py\nLine 515: :param cookie_dict: Dict of key/values to insert into CookieJar.","file":"src/requests/utils.py","line":515,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"How do I perform a standard HTTP retrieval using this session object?","query":"session get request","file":"src/requests/sessions.py","symbol":"get","line":655,"lang":"en","candidates":[{"text":"File: tests/test_requests.py\nLine 89: requests.session().get","file":"tests/test_requests.py","line":89,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 651: session.request(method=\"GET\", url=httpbin())","file":"tests/test_requests.py","line":651,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 657: resp = session.request(method=\"GET\", url=httpbin(\"get\"))","file":"tests/test_requests.py","line":657,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 688: old_auth = requests.sessions.get_netrc_auth","file":"tests/test_requests.py","line":688,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 695: requests.sessions.get_netrc_auth = get_netrc_auth_mock","file":"tests/test_requests.py","line":695,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 716: requests.sessions.get_netrc_auth = old_auth","file":"tests/test_requests.py","line":716,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"how do I convert a cookie container into a plain dictionary?","query":"cookiejar to dict","file":"src/requests/utils.py","symbol":"dict_from_cookiejar","line":500,"lang":"en","candidates":[{"text":"File: docs/api.rst\nLine 96: .. autofunction:: requests.utils.dict_from_cookiejar","file":"docs/api.rst","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/api.rst\nLine 97: .. autofunction:: requests.utils.add_dict_to_cookiejar","file":"docs/api.rst","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/api.rst\nLine 98: .. autofunction:: requests.cookies.cookiejar_from_dict","file":"docs/api.rst","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/api.py\nLine 37: :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.","file":"src/requests/api.py","line":37,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 295: jar. Allows client-code to call ``dict(RequestsCookieJar)`` and get a","file":"src/requests/cookies.py","line":295,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 586: :param cookie_dict: Dict of key/values to insert into CookieJar.","file":"src/requests/cookies.py","line":586,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 610: :param cookies: Dictionary or CookieJar object to be added.","file":"src/requests/cookies.py","line":610,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 301: :param cookies: dictionary or CookieJar of cookies to attach to this request.","file":"src/requests/models.py","line":301,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 589: :param cookies: (optional) Dict or CookieJar object to send with the","file":"src/requests/sessions.py","line":589,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 511: def add_dict_to_cookiejar(cj: CookieJar, cookie_dict: dict[str, str]) -> CookieJar:","file":"src/requests/utils.py","line":511,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/utils.py\nLine 515: :param cookie_dict: Dict of key/values to insert into CookieJar.","file":"src/requests/utils.py","line":515,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 32: from requests.cookies import cookiejar_from_dict, morsel_to_cookie","file":"tests/test_requests.py","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 18: add_dict_to_cookiejar,","file":"tests/test_utils.py","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 803: def test_add_dict_to_cookiejar(cookiejar):","file":"tests/test_utils.py","line":803,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 804: \"\"\"Ensure add_dict_to_cookiejar works for","file":"tests/test_utils.py","line":804,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 808: cj = add_dict_to_cookiejar(cookiejar, cookiedict)","file":"tests/test_utils.py","line":808,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"如何生成客户端的 mTLS 证书?","query":"mtls client cert","file":"tests/certs/mtls/client/Makefile","symbol":"all","line":13,"lang":"zh","candidates":[{"text":"File: tests/certs/README.md\nLine 9: * [mtls](./mtls) provides a valid client certificate with a 2 year validity","file":"tests/certs/README.md","line":9,"lexical":0.55,"target":false},{"text":"File: tests/test_requests.py\nLine 3050: \"tests/certs/mtls/client/client.pem\",","file":"tests/test_requests.py","line":3050,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 3051: \"tests/certs/mtls/client/client.key\",","file":"tests/test_requests.py","line":3051,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Il semble que la génération de l'aide au format Windows ne s'exécute pas correctement quand on lance la compilation de la documentation, ou du moins le processus de création du fichier projet .hhp ne semble pas être déclenché par la commande standard de build de la doc.","query":"sphinx htmlhelp build","file":"docs/Makefile","symbol":"htmlhelp","line":85,"lang":"fr","candidates":[{"text":"File: docs/Makefile\nLine 86: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp","file":"docs/Makefile","line":86,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/make.bat\nLine 116: %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp","file":"docs/make.bat","line":116,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Comment est-ce que la taille du contenu est calculée et ajoutée aux en-têtes quand le corps de la requête est présent ou absent ?","query":"content-length header body","file":"src/requests/models.py","symbol":"prepare_content_length","line":654,"lang":"fr","candidates":[{"text":"File: src/requests/adapters.py\nLine 679: chunked = not (request.body is None or \"Content-Length\" in request.headers)","file":"src/requests/adapters.py","line":679,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 655: \"\"\"Prepare Content-Length header based on request method and body\"\"\"","file":"src/requests/models.py","line":655,"lexical":0.44999999999999996,"target":true}]}
{"site":"project_search","repo":"requests","task":"ヘッダー値に含まれるURLエンコードされた文字列をデコードする際、ダブルクォートで囲まれたUNCパスが正しく処理されず、クォートが残ってしまう、あるいは不適切なデコードが行われる不具合があります。テストケースを確認してください。","query":"unquote header value","file":"tests/test_utils.py","symbol":"test_is_filename","line":216,"lang":"ja","candidates":[{"text":"File: src/requests/utils.py\nLine 434: item = unquote_header_value(item[1:-1])","file":"src/requests/utils.py","line":434,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 469: value = unquote_header_value(value[1:-1])","file":"src/requests/utils.py","line":469,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 475: def unquote_header_value(value: str, is_filename: bool = False) -> str:","file":"src/requests/utils.py","line":475,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 476: r\"\"\"Unquotes a header value. (Reversal of :func:`quote_header_value`).","file":"src/requests/utils.py","line":476,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 480: :param value: the header value to unquote.","file":"src/requests/utils.py","line":480,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 42: unquote_header_value,","file":"tests/test_utils.py","line":42,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_utils.py\nLine 202: class TestUnquoteHeaderValue:","file":"tests/test_utils.py","line":202,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 214: assert unquote_header_value(value) == expected","file":"tests/test_utils.py","line":214,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 217: assert unquote_header_value('\"\\\\\\\\Comp\\\\Res\"', True) == \"\\\\\\\\Comp\\\\Res\"","file":"tests/test_utils.py","line":217,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"traiter la requête socket et renvoyer son contenu après envoi d'une réponse textuelle","query":"text response handler","file":"tests/testserver/server.py","symbol":"text_response_handler","line":53,"lang":"fr","candidates":[{"text":"File: tests/testserver/server.py\nLine 53: def text_response_handler(sock):","file":"tests/testserver/server.py","line":53,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/testserver/server.py\nLine 59: return Server(text_response_handler, **kwargs)","file":"tests/testserver/server.py","line":59,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"ヘッダーの扱いをテストしているのですが、大文字小文字を区別せずにキーを参照できる辞書型の挙動を確認したいです。このクラスがどのように実装されているか、テストコードを見せてくれますか?","query":"case insensitive dict","file":"tests/test_structures.py","symbol":"TestCaseInsensitiveDict","line":6,"lang":"ja","candidates":[{"text":"File: HISTORY.md\nLine 968: - Change built-in CaseInsensitiveDict (used for headers) to use","file":"HISTORY.md","line":968,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1317: - The `CaseInsensitiveDict` used for HTTP headers now behaves like a","file":"HISTORY.md","line":1317,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1988: - CaseInsensitiveDict lower-case caching","file":"HISTORY.md","line":1988,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 2015: - Case-Insensitive Header Dictionaries!","file":"HISTORY.md","line":2015,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/_types.py\nLine 67: from .structures import CaseInsensitiveDict","file":"src/requests/_types.py","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/_types.py\nLine 127: _FileName, _FileContent, str, CaseInsensitiveDict[str] | Mapping[str, str]","file":"src/requests/_types.py","line":127,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 52: from .structures import CaseInsensitiveDict","file":"src/requests/adapters.py","line":52,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/adapters.py\nLine 382: response.headers = CaseInsensitiveDict(getattr(resp, \"headers\", {}))","file":"src/requests/adapters.py","line":382,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 71: from .structures import CaseInsensitiveDict","file":"src/requests/models.py","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 401: headers: CaseInsensitiveDict[str | bytes]","file":"src/requests/models.py","line":401,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 568: self.headers = CaseInsensitiveDict()","file":"src/requests/models.py","line":568,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 741: headers: CaseInsensitiveDict[str]","file":"src/requests/models.py","line":741,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 773: #: Case-insensitive Dictionary of Response Headers.","file":"src/requests/models.py","line":773,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 776: self.headers = CaseInsensitiveDict()","file":"src/requests/models.py","line":776,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 47: from .structures import CaseInsensitiveDict","file":"src/requests/sessions.py","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 414: headers: CaseInsensitiveDict[str]","file":"src/requests/sessions.py","line":414,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 443: #: A case-insensitive dictionary of headers to be sent on each","file":"src/requests/sessions.py","line":443,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/sessions.py\nLine 548: request.headers, self.headers, dict_class=CaseInsensitiveDict","file":"src/requests/sessions.py","line":548,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 20: class CaseInsensitiveDict(MutableMapping[str, _VT], Generic[_VT]):","file":"src/requests/structures.py","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 21: \"\"\"A case-insensitive ``dict``-like object.","file":"src/requests/structures.py","line":21,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 33: cid = CaseInsensitiveDict()","file":"src/requests/structures.py","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 82: other_dict: CaseInsensitiveDict[Any] = CaseInsensitiveDict(other) # type: ignore[reportUnknownArgumentType]","file":"src/requests/structures.py","line":82,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 89: def copy(self) -> CaseInsensitiveDict[_VT]:","file":"src/requests/structures.py","line":89,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/structures.py\nLine 90: return CaseInsensitiveDict(self._store.values())","file":"src/requests/structures.py","line":90,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 69: from .structures import CaseInsensitiveDict","file":"src/requests/utils.py","line":69,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 569: def get_encoding_from_headers(headers: CaseInsensitiveDict[str]) -> str | None:","file":"src/requests/utils.py","line":569,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 951: def default_headers() -> CaseInsensitiveDict[str]:","file":"src/requests/utils.py","line":951,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 953: :rtype: requests.structures.CaseInsensitiveDict","file":"src/requests/utils.py","line":953,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 955: return CaseInsensitiveDict(","file":"src/requests/utils.py","line":955,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 55: from requests.structures import CaseInsensitiveDict","file":"tests/test_requests.py","line":55,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2331: class TestCaseInsensitiveDict:","file":"tests/test_requests.py","line":2331,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 2335: CaseInsensitiveDict({\"Foo\": \"foo\", \"BAr\": \"bar\"}),","file":"tests/test_requests.py","line":2335,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Comment est-ce que je peux vérifier si les liens dans la documentation sont toujours valides ?","query":"sphinx linkcheck","file":"docs/Makefile","symbol":"linkcheck","line":188,"lang":"fr","candidates":[{"text":"File: docs/Makefile\nLine 189: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck","file":"docs/Makefile","line":189,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/make.bat\nLine 221: %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck","file":"docs/make.bat","line":221,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Es scheint ein Problem mit der Implementierung der Duplizierungslogik zu geben: Wenn eine neue Instanz erstellt wird, sollte sichergestellt sein, dass es sich um ein eigenständiges Objekt handelt, das zwar die gleichen Inhalte wie das Original besitzt, aber nicht dasselbe Objekt im Speicher ist.","query":"case insensitive copy","file":"tests/test_structures.py","symbol":"test_copy","line":37,"lang":"de","candidates":[{"text":"File: src/requests/structures.py\nLine 89: def copy(self) -> CaseInsensitiveDict[_VT]:","file":"src/requests/structures.py","line":89,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_structures.py\nLine 38: copy = self.case_insensitive_dict.copy()","file":"tests/test_structures.py","line":38,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_structures.py\nLine 39: assert copy is not self.case_insensitive_dict","file":"tests/test_structures.py","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_structures.py\nLine 40: assert copy == self.case_insensitive_dict","file":"tests/test_structures.py","line":40,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Je travaille sur la mise en place de la signature des requêtes. Peux-tu me montrer la fonction qui gère le hachage SHA-512 en s'assurant que les chaînes de caractères sont d'abord converties en UTF-8 ?","query":"sha512 utf8","file":"src/requests/auth.py","symbol":"sha512_utf8","line":200,"lang":"fr","candidates":[{"text":"File: src/requests/auth.py\nLine 200: def sha512_utf8(x: str | bytes) -> str:","file":"src/requests/auth.py","line":200,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/auth.py\nLine 205: hash_utf8 = sha512_utf8","file":"src/requests/auth.py","line":205,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"验证使用不可解析地址的代理时是否抛出ProxyError","query":"proxy error test","file":"tests/test_requests.py","symbol":"test_proxy_error","line":597,"lang":"zh","candidates":[{"text":"File: tests/test_requests.py\nLine 597: def test_proxy_error(self):","file":"tests/test_requests.py","line":597,"lexical":0.65,"target":true},{"text":"File: tests/test_requests.py\nLine 599: with pytest.raises(ProxyError):","file":"tests/test_requests.py","line":599,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 604: def test_proxy_error_on_bad_url(self, httpbin, httpbin_secure):","file":"tests/test_requests.py","line":604,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 619: with pytest.raises(ProxyError):","file":"tests/test_requests.py","line":619,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 626: with pytest.raises(ProxyError):","file":"tests/test_requests.py","line":626,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 634: with pytest.raises(ProxyError):","file":"tests/test_requests.py","line":634,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 643: with pytest.raises(ProxyError):","file":"tests/test_requests.py","line":643,"lexical":0.65,"target":false},{"text":"File: tests/test_requests.py\nLine 649: with pytest.raises(ProxyError):","file":"tests/test_requests.py","line":649,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"Como é que o código decide qual adaptador de conexão usar com base no prefixo da URL?","query":"url adapter prefix","file":"src/requests/sessions.py","symbol":"get_adapter","line":870,"lang":"pt","candidates":[{"text":"File: HISTORY.md\nLine 548: - Properly normalize adapter prefixes for url comparison.","file":"HISTORY.md","line":548,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1699: assert s.get_adapter(url_matching_only_prefix) is prefix_adapter","file":"tests/test_requests.py","line":1699,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1701: s.get_adapter(url_matching_more_specific_prefix)","file":"tests/test_requests.py","line":1701,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1704: assert s.get_adapter(url_not_matching_prefix) not in (","file":"tests/test_requests.py","line":1704,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1717: assert s.get_adapter(url_matching_prefix) is my_adapter","file":"tests/test_requests.py","line":1717,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1729: assert s.get_adapter(url_matching_prefix_with_different_case) is my_adapter","file":"tests/test_requests.py","line":1729,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1741: assert s.get_adapter(url_matching_prefix) is adapter","file":"tests/test_requests.py","line":1741,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1742: assert s.get_adapter(url_not_matching_prefix) is not adapter","file":"tests/test_requests.py","line":1742,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1754: assert s.get_adapter(url_matching_prefix) is adapter","file":"tests/test_requests.py","line":1754,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"如何构建 Apple Help Book?","query":"applehelp build","file":"docs/Makefile","symbol":"applehelp","line":102,"lang":"zh","candidates":[{"text":"File: docs/Makefile\nLine 103: $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp","file":"docs/Makefile","line":103,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/Makefile\nLine 105: @echo \"Build finished. The help book is in $(BUILDDIR)/applehelp.\"","file":"docs/Makefile","line":105,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"I'm trying to figure out how to run the automated tests for the documentation content. Can you show me the command that triggers the tool used to verify the code snippets within the docs?","query":"doctest sphinx","file":"docs/Makefile","symbol":"doctest","line":195,"lang":"en","candidates":[{"text":"File: docs/Makefile\nLine 196: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest","file":"docs/Makefile","line":196,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/make.bat\nLine 230: %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest","file":"docs/make.bat","line":230,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"verificar que get_environ_proxies devuelve un diccionario vacío cuando se pasa no_proxy","query":"test bypass no_proxy","file":"tests/test_utils.py","symbol":"test_bypass_no_proxy_keyword","line":263,"lang":"es","candidates":[{"text":"File: tests/test_utils.py\nLine 263: def test_bypass_no_proxy_keyword(self, url):","file":"tests/test_utils.py","line":263,"lexical":0.65,"target":true},{"text":"File: tests/test_utils.py\nLine 277: def test_not_bypass_no_proxy_keyword(self, url, monkeypatch):","file":"tests/test_utils.py","line":277,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 838: def test_should_bypass_proxies_no_proxy(url, expected, monkeypatch):","file":"tests/test_utils.py","line":838,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 861: def test_should_bypass_proxies_no_proxy_domain_boundary(url, expected):","file":"tests/test_utils.py","line":861,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"여러 도메인에서 하나의 쿠키 저장소를 사용할 때 이름 충돌을 해결하기 위해 도메인과 경로를 지정하여 쿠키를 설정하는 메서드를 찾아줘. 값이 None일 때는 해당 쿠키를 제거하는 로직도 포함되어 있어.","query":"cookie set domain path","file":"src/requests/cookies.py","symbol":"set","line":229,"lang":"ko","candidates":[{"text":"File: docs/user/quickstart.rst\nLine 472: >>> jar.set('tasty_cookie', 'yum', domain='httpbin.org', path='/cookies')","file":"docs/user/quickstart.rst","line":472,"lexical":0.5,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 473: >>> jar.set('gross_cookie', 'blech', domain='httpbin.org', path='/elsewhere')","file":"docs/user/quickstart.rst","line":473,"lexical":0.5,"target":false},{"text":"File: src/requests/cookies.py\nLine 167: \"\"\"Unsets a cookie by name, by default over all domains and paths.","file":"src/requests/cookies.py","line":167,"lexical":0.65,"target":true}]}
{"site":"project_search","repo":"requests","task":"Estou tentando adicionar um cabeçalho de cookie manualmente, mas estou recebendo um erro de implementação não suportada. Preciso entender como inserir corretamente esse cabeçalho na solicitação.","query":"add cookie header","file":"src/requests/cookies.py","symbol":"add_header","line":89,"lang":"pt","candidates":[{"text":"File: src/requests/cookies.py\nLine 92: \"Cookie headers should be added with add_unredirected_header()\"","file":"src/requests/cookies.py","line":92,"lexical":0.65,"target":true},{"text":"File: src/requests/cookies.py\nLine 160: jar.add_cookie_header(r) # type: ignore[arg-type]","file":"src/requests/cookies.py","line":160,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"텍스트 응답 서버가 지정된 문자열을 제대로 반환하는지 확인하는 테스트 찾아줘","query":"text response test","file":"tests/test_testserver.py","symbol":"test_text_response","line":42,"lang":"ko","candidates":[{"text":"File: tests/test_requests.py\nLine 2185: def test_response_context_manager(self, httpbin):","file":"tests/test_requests.py","line":2185,"lexical":0.65,"target":false},{"text":"File: tests/test_testserver.py\nLine 42: def test_text_response(self):","file":"tests/test_testserver.py","line":42,"lexical":0.65,"target":true}]}
{"site":"project_search","repo":"requests","task":"쿠키 저장소 객체를 복제할 때 정책 설정까지 그대로 유지하면서 새로운 인스턴스를 생성하는 로직을 찾고 있어요. 기존 데이터와 설정을 그대로 복사해서 반환하는 메서드가 어디에 있나요?","query":"copy cookie jar","file":"src/requests/cookies.py","symbol":"copy","line":467,"lang":"ko","candidates":[{"text":"File: HISTORY.md\nLine 551: - Calling `copy` on a `RequestsCookieJar` will now preserve the cookie","file":"HISTORY.md","line":551,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 1115: - Copy a PreparedRequest's CookieJar more reliably when it is not an","file":"HISTORY.md","line":1115,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/cookies.py\nLine 467: def copy(self) -> RequestsCookieJar:","file":"src/requests/cookies.py","line":467,"lexical":0.65,"target":true},{"text":"File: src/requests/cookies.py\nLine 468: \"\"\"Return a copy of this RequestsCookieJar.\"\"\"","file":"src/requests/cookies.py","line":468,"lexical":0.65,"target":false},{"text":"File: src/requests/cookies.py\nLine 479: def _copy_cookie_jar(jar: CookieJar | None) -> CookieJar | None: # type: ignore[reportUnusedFunction] # cross-module usage in models.py","file":"src/requests/cookies.py","line":479,"lexical":0.65,"target":false},{"text":"File: src/requests/cookies.py\nLine 490: new_jar.set_cookie(copy.copy(cookie))","file":"src/requests/cookies.py","line":490,"lexical":0.65,"target":false},{"text":"File: src/requests/models.py\nLine 53: _copy_cookie_jar,","file":"src/requests/models.py","line":53,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 461: p._cookies = _copy_cookie_jar(self._cookies)","file":"src/requests/models.py","line":461,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 1441: assert isinstance(jar.copy().get_policy(), MyCookiePolicy)","file":"tests/test_requests.py","line":1441,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"API 요청 시 URL 형식이 잘못되었을 때 발생하는 오류 처리를 수정하려고 합니다. 프로토콜 형식이 지원되지 않을 때 어떤 예외가 발생하는지 알려주세요.","query":"invalid url scheme","file":"src/requests/exceptions.py","symbol":"InvalidSchema","line":114,"lang":"ko","candidates":[{"text":"File: src/requests/exceptions.py\nLine 115: \"\"\"The URL scheme provided is either invalid or unsupported.\"\"\"","file":"src/requests/exceptions.py","line":115,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/models.py\nLine 517: f\"Invalid URL {url!r}: No scheme supplied. \"","file":"src/requests/models.py","line":517,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"このドキュメントのクイックスタートセクションの内容を取得してください。","query":"quick start","file":"docs/user/quickstart.rst","symbol":"Quickstart","line":3,"lang":"ja","candidates":[{"text":"File: docs/_templates/sidebar.html\nLine 18: <li><a href=\"{{ pathto('user/quickstart') }}\">{{ _('Quickstart') }}</a></li>","file":"docs/_templates/sidebar.html","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/conf.py\nLine 4: # sphinx-quickstart on Fri Feb 19 00:05:47 2016.","file":"docs/conf.py","line":4,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/index.rst\nLine 2: sphinx-quickstart on Sun Feb 13 23:54:25 2011.","file":"docs/index.rst","line":2,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/index.rst\nLine 93: user/quickstart","file":"docs/index.rst","line":93,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 848: quickstart guide instead. According to the GitHub API doc, the way to do this","file":"docs/user/advanced.rst","line":848,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 1: .. _quickstart:","file":"docs/user/quickstart.rst","line":1,"lexical":0.6000000000000001,"target":true},{"text":"File: docs/user/quickstart.rst\nLine 3: Quickstart","file":"docs/user/quickstart.rst","line":3,"lexical":0.6000000000000001,"target":false}]}
{"site":"project_search","repo":"requests","task":"Wie wird eine Anfrage für die Übertragung vorbereitet, indem Session-Einstellungen mit den Anfrage-Daten zusammengeführt werden?","query":"prepare request","file":"src/requests/sessions.py","symbol":"prepare_request","line":511,"lang":"de","candidates":[{"text":"File: HISTORY.md\nLine 878: `PreparedRequest` objects.","file":"HISTORY.md","line":878,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1038: - When using the PreparedRequest flow, requests will now correctly","file":"HISTORY.md","line":1038,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1040: - When using the PreparedRequest flow, requests will now correctly","file":"HISTORY.md","line":1040,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1106: - Simplify the PreparedRequest.prepare API: We no longer require the","file":"HISTORY.md","line":1106,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1115: - Copy a PreparedRequest's CookieJar more reliably when it is not an","file":"HISTORY.md","line":1115,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1299: - Allow copying of PreparedRequests without headers/cookies.","file":"HISTORY.md","line":1299,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1421: - Added new method to `PreparedRequest` objects:","file":"HISTORY.md","line":1421,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1422: `PreparedRequest.copy()`.","file":"HISTORY.md","line":1422,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1426: - Added new method to `Session` objects: `Session.prepare_request()`.","file":"HISTORY.md","line":1426,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1427: This method updates and prepares a `Request` object, and returns the","file":"HISTORY.md","line":1427,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1428: corresponding `PreparedRequest` object.","file":"HISTORY.md","line":1428,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 64: .. autoclass:: requests.PreparedRequest","file":"docs/api.rst","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 119: .. _prepared-requests:","file":"docs/user/advanced.rst","line":119,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 121: Prepared Requests","file":"docs/user/advanced.rst","line":121,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 126: ``PreparedRequest`` that was used. In some cases you may wish to do some extra","file":"docs/user/advanced.rst","line":126,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 154: prepare it immediately and modify the ``PreparedRequest`` object. You then","file":"docs/user/advanced.rst","line":154,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 162: :class:`PreparedRequest <requests.PreparedRequest>` with that state","file":"docs/user/advanced.rst","line":162,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 163: applied, replace the call to :meth:`Request.prepare()","file":"docs/user/advanced.rst","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 164: <requests.Request.prepare>` with a call to","file":"docs/user/advanced.rst","line":164,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 165: :meth:`Session.prepare_request() <requests.Session.prepare_request>`, like this::","file":"docs/user/advanced.rst","line":165,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 172: prepped = s.prepare_request(req)","file":"docs/user/advanced.rst","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 190: When you are using the prepared request flow, keep in mind that it does not take into account the environment.","file":"docs/user/advanced.rst","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 201: prepped = s.prepare_request(req)","file":"docs/user/advanced.rst","line":201,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/__init__.py\nLine 184: from .models import PreparedRequest, Request, Response","file":"src/requests/__init__.py","line":184,"lexical":0.5,"target":false},{"text":"File: src/requests/__init__.py\nLine 193: \"PreparedRequest\",","file":"src/requests/__init__.py","line":193,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 47: def is_prepared(request: PreparedRequest) -> TypeIs[_ValidatedRequest]:","file":"src/requests/_types.py","line":47,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 48: \"\"\"Verify a PreparedRequest has been fully prepared.\"\"\"","file":"src/requests/_types.py","line":48,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 66: from .models import PreparedRequest, Response","file":"src/requests/_types.py","line":66,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 69: class _ValidatedRequest(PreparedRequest):","file":"src/requests/_types.py","line":69,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 70: \"\"\"Subtype asserting a PreparedRequest has been fully prepared before calling.","file":"src/requests/_types.py","line":70,"lexical":0.5,"target":false},{"text":"File: src/requests/_types.py\nLine 137: tuple[str, str] | AuthBase | Callable[[PreparedRequest], PreparedRequest] | None","file":"src/requests/_types.py","line":137,"lexical":0.5,"target":false},{"text":"File: src/requests/adapters.py\nLine 75: from .models import PreparedRequest","file":"src/requests/adapters.py","line":75,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"définir le type de dictionnaire des arguments optionnels pour les requêtes","query":"request kwargs type","file":"src/requests/_types.py","symbol":"BaseRequestKwargs","line":157,"lang":"fr","candidates":[{"text":"File: src/requests/_types.py\nLine 157: class BaseRequestKwargs(TypedDict, total=False):","file":"src/requests/_types.py","line":157,"lexical":0.65,"target":true},{"text":"File: src/requests/api.py\nLine 25: method: str, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]","file":"src/requests/api.py","line":25,"lexical":0.55,"target":false},{"text":"File: src/requests/api.py\nLine 90: def options(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":90,"lexical":0.55,"target":false},{"text":"File: src/requests/api.py\nLine 102: def head(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":102,"lexical":0.55,"target":false},{"text":"File: src/requests/api.py\nLine 171: def delete(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/api.py","line":171,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 673: def options(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":673,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 684: def head(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":684,"lexical":0.55,"target":false},{"text":"File: src/requests/sessions.py\nLine 742: def delete(self, url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:","file":"src/requests/sessions.py","line":742,"lexical":0.55,"target":false}]}
{"site":"project_search","repo":"requests","task":"Es gibt ein Problem bei der Erstellung von Prüfsummen, wenn Strings verarbeitet werden sollen; die Funktion muss sicherstellen, dass die Zeichenkodierung vor dem Hashing korrekt in Bytes umgewandelt wird, um Inkonsistenzen bei der Hex-Ausgabe zu vermeiden.","query":"sha256 utf8","file":"src/requests/auth.py","symbol":"sha256_utf8","line":192,"lang":"de","candidates":[{"text":"File: src/requests/auth.py\nLine 192: def sha256_utf8(x: str | bytes) -> str:","file":"src/requests/auth.py","line":192,"lexical":0.39999999999999997,"target":true},{"text":"File: src/requests/auth.py\nLine 197: hash_utf8 = sha256_utf8","file":"src/requests/auth.py","line":197,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"커뮤니티 가이드 문서에서 기술 지원을 받는 방법을 설명하는 섹션을 찾고 싶어요. 어떤 경로로 문의해야 하는지 안내하는 부분을 확인해 주세요.","query":"get support","file":"docs/community/support.rst","symbol":"Support","line":3,"lang":"ko","candidates":[{"text":"File: HISTORY.md\nLine 1652: - cookies.get now supports default argument","file":"HISTORY.md","line":1652,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/_types.py\nLine 33: \"\"\"Check if obj supports read, including __getattr__ based proxies.\"\"\"","file":"src/requests/_types.py","line":33,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 24: from _typeshed import SupportsKeysAndGetItem","file":"src/requests/cookies.py","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 218: \"\"\"Dict-like get() that also supports optional domain and path args in","file":"src/requests/cookies.py","line":218,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/cookies.py\nLine 392: self, other: CookieJar | SupportsKeysAndGetItem[str, str]","file":"src/requests/cookies.py","line":392,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"I'm trying to figure out how the session retrieves a specific value based on a key, domain, and path. Can you show me the internal logic that iterates through the collection to match these criteria?","query":"get cookie value","file":"src/requests/cookies.py","symbol":"_find","line":401,"lang":"en","candidates":[{"text":"File: src/requests/cookies.py\nLine 404: \"\"\"Requests uses this method internally to get cookie values.","file":"src/requests/cookies.py","line":404,"lexical":0.65,"target":true},{"text":"File: tests/test_requests.py\nLine 1270: assert resp.cookies.get(\"cookie\") == \"value\"","file":"tests/test_requests.py","line":1270,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"プロキシ設定を無効化したときの挙動を確認するテストを探して","query":"bypass proxy test","file":"tests/test_utils.py","symbol":"test_bypass","line":241,"lang":"ja","candidates":[{"text":"File: tests/test_utils.py\nLine 263: def test_bypass_no_proxy_keyword(self, url):","file":"tests/test_utils.py","line":263,"lexical":0.65,"target":true},{"text":"File: tests/test_utils.py\nLine 277: def test_not_bypass_no_proxy_keyword(self, url, monkeypatch):","file":"tests/test_utils.py","line":277,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 760: \"\"\"Tests for function should_bypass_proxies to check if proxy","file":"tests/test_utils.py","line":760,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 838: def test_should_bypass_proxies_no_proxy(url, expected, monkeypatch):","file":"tests/test_utils.py","line":838,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 839: \"\"\"Tests for function should_bypass_proxies to check if proxy","file":"tests/test_utils.py","line":839,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 861: def test_should_bypass_proxies_no_proxy_domain_boundary(url, expected):","file":"tests/test_utils.py","line":861,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 887: \"\"\"Tests for function should_bypass_proxies to check if proxy","file":"tests/test_utils.py","line":887,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 925: \"\"\"Tests for function should_bypass_proxies to check if proxy","file":"tests/test_utils.py","line":925,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 985: def test_should_bypass_proxies_win_registry_ProxyOverride_value(monkeypatch):","file":"tests/test_utils.py","line":985,"lexical":0.65,"target":false},{"text":"File: tests/test_utils.py\nLine 986: \"\"\"Tests for function should_bypass_proxies to check if proxy","file":"tests/test_utils.py","line":986,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"Il semble y avoir une incohérence dans la section qui détaille les conditions d'utilisation et les permissions légales du projet. Pourriez-vous vérifier si les informations sur les licences sont à jour et correctement formulées ?","query":"license terms","file":"docs/api.rst","symbol":"Licensing","line":193,"lang":"fr","candidates":[{"text":"File: LICENSE\nLine 10: \"License\" shall mean the terms and conditions for use, reproduction,","file":"LICENSE","line":10,"lexical":0.6000000000000001,"target":false},{"text":"File: LICENSE\nLine 67: 2. Grant of Copyright License. Subject to the terms and conditions of","file":"LICENSE","line":67,"lexical":0.6000000000000001,"target":false},{"text":"File: LICENSE\nLine 74: 3. Grant of Patent License. Subject to the terms and conditions of","file":"LICENSE","line":74,"lexical":0.6000000000000001,"target":false},{"text":"File: LICENSE\nLine 125: may provide additional or different license terms and conditions","file":"LICENSE","line":125,"lexical":0.6000000000000001,"target":false},{"text":"File: LICENSE\nLine 134: this License, without any additional terms or conditions.","file":"LICENSE","line":134,"lexical":0.6000000000000001,"target":false},{"text":"File: LICENSE\nLine 136: the terms of any separate license agreement you may have executed","file":"LICENSE","line":136,"lexical":0.6000000000000001,"target":false}]}
{"site":"project_search","repo":"requests","task":"¿Cómo se implementa la petición para obtener solo las cabeceras sin el cuerpo?","query":"head request","file":"src/requests/api.py","symbol":"head","line":102,"lang":"es","candidates":[{"text":"File: HISTORY.md\nLine 14: `Request.headers.update()` may need to narrow typing in their code. (#7441)","file":"HISTORY.md","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 24: `Request.headers` typing to improve handling for users. (#7431)","file":"HISTORY.md","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 214: will construct a `Proxy-Authorization` header that is attached to the request to","file":"HISTORY.md","line":214,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 251: - Requests relaxes header component requirements to support bytes/str subclasses. (#6356)","file":"HISTORY.md","line":251,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 340: `requests.exceptions.InvalidHeader`. (#5914)","file":"HISTORY.md","line":340,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 342: - Fixed bug where two Host headers were sent for chunked requests. (#5391)","file":"HISTORY.md","line":342,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 500: - Requests removes Authorization header from requests redirected","file":"HISTORY.md","line":500,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1299: - Allow copying of PreparedRequests without headers/cookies.","file":"HISTORY.md","line":1299,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1377: - Values of headers set by Requests are now always the native string","file":"HISTORY.md","line":1377,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1742: - HEAD requests don't follow redirects anymore.","file":"HISTORY.md","line":1742,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 1987: - `python-requests.org` default User-Agent header","file":"HISTORY.md","line":1987,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 87: .. autofunction:: requests.utils.get_encoding_from_headers","file":"docs/api.rst","line":87,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 175: # you will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.","file":"docs/api.rst","line":175,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/api.rst\nLine 189: requests.get('https://httpbin.org/headers')","file":"docs/api.rst","line":189,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 113: request, and then the request's headers::","file":"docs/user/advanced.rst","line":113,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 115: >>> r.request.headers","file":"docs/user/advanced.rst","line":115,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 134: req = Request('POST', url, data=data, headers=headers)","file":"docs/user/advanced.rst","line":134,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 170: req = Request('GET', url, data=data, headers=headers)","file":"docs/user/advanced.rst","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 909: rather than download the whole page I'll send a HEAD request to get the","file":"docs/user/advanced.rst","line":909,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 914: >>> r = requests.head(url=url, auth=auth)","file":"docs/user/advanced.rst","line":914,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 954: >>> r = requests.head(url=url)","file":"docs/user/advanced.rst","line":954,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 958: Requests will automatically parse these link headers and make them easily consumable::","file":"docs/user/advanced.rst","line":958,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 1080: In unusual circumstances you may want to provide headers in an ordered manner. If you pass an ``OrderedDict`` to the ``headers`` keyword argument, that will provide the headers with an ordering. *However*, the ordering of the default headers used by Reques…","file":"docs/user/advanced.rst","line":1080,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/advanced.rst\nLine 1082: If this is problematic, users should consider setting the default headers on a :class:`Session <requests.Session>` object, by setting :attr:`Session.headers <requests.Session.headers>` to a custom ``OrderedDict``. That ordering will always be preferred.","file":"docs/user/advanced.rst","line":1082,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 42: Nice, right? What about the other HTTP request types: PUT, DELETE, HEAD and","file":"docs/user/quickstart.rst","line":42,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 47: >>> r = requests.head('https://httpbin.org/get')","file":"docs/user/quickstart.rst","line":47,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 100: the response based on the HTTP headers. The text encoding guessed by Requests","file":"docs/user/quickstart.rst","line":100,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 209: If you'd like to add HTTP headers to a request, simply pass in a ``dict`` to the","file":"docs/user/quickstart.rst","line":209,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 217: >>> r = requests.get(url, headers=headers)","file":"docs/user/quickstart.rst","line":217,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 230: Furthermore, Requests does not change its behavior at all based on which custom headers are specified. The headers are simply passed on into the final request.","file":"docs/user/quickstart.rst","line":230,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 520: >>> r = requests.head('http://github.com/', allow_redirects=True)","file":"docs/user/quickstart.rst","line":520,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/__init__.py\nLine 171: from .api import delete, get, head, options, patch, post, put, request","file":"src/requests/__init__.py","line":171,"lexical":0.5,"target":false}]}
{"site":"project_search","repo":"requests","task":"リクエストの元のホスト名を取得するメソッドで、内部では get_host() を呼び出しているが、なぜ origin_req_host という名前なのか、また get_host との違いや由来について説明してください。","query":"origin req host","file":"src/requests/cookies.py","symbol":"get_origin_req_host","line":57,"lang":"ja","candidates":[{"text":"File: src/requests/cookies.py\nLine 57: def get_origin_req_host(self) -> str:","file":"src/requests/cookies.py","line":57,"lexical":0.55,"target":true},{"text":"File: src/requests/cookies.py\nLine 106: def origin_req_host(self) -> str:","file":"src/requests/cookies.py","line":106,"lexical":0.55,"target":false},{"text":"File: src/requests/cookies.py\nLine 107: return self.get_origin_req_host()","file":"src/requests/cookies.py","line":107,"lexical":0.55,"target":false}]}
{"site":"project_search","repo":"requests","task":"압축 파일 내부에 있는 경로를 처리할 때 경로가 제대로 추출되는지 검증하는 테스트 코드를 찾고 있어요. 특히 압축되지 않은 일반 경로를 넣었을 때 값이 변하지 않는지 확인하는 로직이 어디에 있나요?","query":"extract zipped paths","file":"tests/test_utils.py","symbol":"TestExtractZippedPaths","line":342,"lang":"ko","candidates":[{"text":"File: HISTORY.md\nLine 79: - CVE-2026-25645 ``requests.utils.extract_zipped_paths`` now extracts","file":"HISTORY.md","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: HISTORY.md\nLine 333: - Fixed defect in `extract_zipped_paths` which could result in an infinite loop","file":"HISTORY.md","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 290: def extract_zipped_paths(path: str) -> str:","file":"src/requests/utils.py","line":290,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 21: extract_zipped_paths,","file":"tests/test_utils.py","line":21,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_utils.py\nLine 342: class TestExtractZippedPaths:","file":"tests/test_utils.py","line":342,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 353: assert path == extract_zipped_paths(path)","file":"tests/test_utils.py","line":353,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 355: def test_zipped_paths_extracted(self, tmpdir):","file":"tests/test_utils.py","line":355,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 362: extracted_path = extract_zipped_paths(zipped_path)","file":"tests/test_utils.py","line":362,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 373: assert extract_zipped_paths(path) == path","file":"tests/test_utils.py","line":373,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"¿Cómo se comprueba si una respuesta no tiene errores de cliente o servidor?","query":"status code ok","file":"src/requests/models.py","symbol":"__nonzero__","line":847,"lang":"es","candidates":[{"text":"File: docs/api.rst\nLine 108: Status Code Lookup","file":"docs/api.rst","line":108,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/advanced.rst\nLine 756: >>> if r.status_code == requests.codes.ok:","file":"docs/user/advanced.rst","line":756,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 378: Requests also comes with a built-in status code lookup object for easy","file":"docs/user/quickstart.rst","line":378,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/quickstart.rst\nLine 381: >>> r.status_code == requests.codes.ok","file":"docs/user/quickstart.rst","line":381,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/status_codes.py\nLine 18: ``codes.okay`` all correspond to the HTTP status code 200.","file":"src/requests/status_codes.py","line":18,"lexical":0.65,"target":false},{"text":"File: src/requests/status_codes.py\nLine 106: codes: LookupDict[int] = LookupDict(name=\"status_codes\")","file":"src/requests/status_codes.py","line":106,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"generate a single html output from the documentation","query":"single html","file":"docs/Makefile","symbol":".PHONY","line":66,"lang":"en","candidates":[{"text":"File: docs/Makefile\nLine 27: @echo \" singlehtml to make a single large HTML file\"","file":"docs/Makefile","line":27,"lexical":0.39999999999999997,"target":true},{"text":"File: docs/Makefile\nLine 66: .PHONY: singlehtml","file":"docs/Makefile","line":66,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 67: singlehtml:","file":"docs/Makefile","line":67,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 68: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml","file":"docs/Makefile","line":68,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/Makefile\nLine 70: @echo \"Build finished. The HTML page is in $(BUILDDIR)/singlehtml.\"","file":"docs/Makefile","line":70,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 23: echo. singlehtml to make a single large HTML file","file":"docs/make.bat","line":23,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 91: if \"%1\" == \"singlehtml\" (","file":"docs/make.bat","line":91,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 92: %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml","file":"docs/make.bat","line":92,"lexical":0.39999999999999997,"target":false},{"text":"File: docs/make.bat\nLine 95: echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.","file":"docs/make.bat","line":95,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"encontre o teste que verifica se a ordem dos cabeçalhos é mantida ao usar um dicionário ordenado na sessão","query":"headers preserve order","file":"tests/test_requests.py","symbol":"test_headers_preserve_order","line":504,"lang":"pt","candidates":[{"text":"File: tests/test_requests.py\nLine 504: def test_headers_preserve_order(self, httpbin):","file":"tests/test_requests.py","line":504,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 505: \"\"\"Preserve order when headers provided as OrderedDict.\"\"\"","file":"tests/test_requests.py","line":505,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"latexpdf 빌드 타겟을 찾아줘","query":"latex pdf make","file":"docs/Makefile","symbol":".PHONY","line":134,"lang":"ko","candidates":[{"text":"File: docs/Makefile\nLine 36: @echo \" latexpdf to make LaTeX files and run them through pdflatex\"","file":"docs/Makefile","line":36,"lexical":0.65,"target":true},{"text":"File: docs/Makefile\nLine 37: @echo \" latexpdfja to make LaTeX files and run them through platex/dvipdfmx\"","file":"docs/Makefile","line":37,"lexical":0.65,"target":false},{"text":"File: docs/Makefile\nLine 131: @echo \"Run \\`make' in that directory to run these through (pdf)latex\" \\","file":"docs/Makefile","line":131,"lexical":0.65,"target":false},{"text":"File: docs/Makefile\nLine 132: \"(use \\`make latexpdf' here to do that automatically).\"","file":"docs/Makefile","line":132,"lexical":0.65,"target":false},{"text":"File: docs/Makefile\nLine 138: $(MAKE) -C $(BUILDDIR)/latex all-pdf","file":"docs/Makefile","line":138,"lexical":0.65,"target":false},{"text":"File: docs/Makefile\nLine 145: $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja","file":"docs/Makefile","line":145,"lexical":0.65,"target":false}]}
{"site":"project_search","repo":"requests","task":"¿Cómo genero el archivo de cambios usando make?","query":"sphinx changes build","file":"docs/Makefile","symbol":"changes","line":182,"lang":"es","candidates":[{"text":"File: docs/Makefile\nLine 183: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes","file":"docs/Makefile","line":183,"lexical":0.44999999999999996,"target":true},{"text":"File: docs/make.bat\nLine 213: %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes","file":"docs/make.bat","line":213,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"응답 본문의 데이터를 이미 읽었는데 다시 접근하려고 할 때 발생하는 오류가 있습니다. 데이터 스트림이 이미 소비되었을 때 발생하는 예외 처리를 확인해 주세요.","query":"stream consumed error","file":"src/requests/exceptions.py","symbol":"StreamConsumedError","line":138,"lang":"ko","candidates":[{"text":"File: src/requests/exceptions.py\nLine 138: class StreamConsumedError(RequestException, TypeError):","file":"src/requests/exceptions.py","line":138,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/models.py\nLine 65: StreamConsumedError,","file":"src/requests/models.py","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 959: raise StreamConsumedError()","file":"src/requests/models.py","line":959,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"verarbeite eingereichte callback funktion die als dict übergeben werden können","query":"register hooks","file":"src/requests/models.py","symbol":"prepare_hooks","line":722,"lang":"de","candidates":[{"text":"File: HISTORY.md\nLine 1775: - New `Response.register_hook` for registering hooks within the","file":"HISTORY.md","line":1775,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/models.py\nLine 729: self.register_hook(event, hooks[event])","file":"src/requests/models.py","line":729,"lexical":0.39999999999999997,"target":true}]}
{"site":"project_search","repo":"requests","task":"요청에 사용된 헤더 값이 유효하지 않을 때 발생하는 예외 클래스를 찾아주세요.","query":"InvalidHeader exception","file":"src/requests/exceptions.py","symbol":"InvalidHeader","line":122,"lang":"ko","candidates":[{"text":"File: HISTORY.md\nLine 339: - Fixed urllib3 exception leak, wrapping `urllib3.exceptions.InvalidHeader` with","file":"HISTORY.md","line":339,"lexical":0.39999999999999997,"target":false},{"text":"File: HISTORY.md\nLine 340: `requests.exceptions.InvalidHeader`. (#5914)","file":"HISTORY.md","line":340,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/adapters.py\nLine 28: from urllib3.exceptions import InvalidHeader as _InvalidHeader","file":"src/requests/adapters.py","line":28,"lexical":0.39999999999999997,"target":false},{"text":"File: src/requests/exceptions.py\nLine 122: class InvalidHeader(RequestException, ValueError):","file":"src/requests/exceptions.py","line":122,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/test_lowlevel.py\nLine 122: with pytest.raises(requests.exceptions.InvalidHeader):","file":"tests/test_lowlevel.py","line":122,"lexical":0.39999999999999997,"target":false}]}
{"site":"project_search","repo":"requests","task":"Estoy configurando el entorno de pruebas locales para el servidor. ¿Podrías mostrarme cómo se genera la clave privada RSA para las certificaciones de validación?","query":"openssl genrsa","file":"tests/certs/valid/server/Makefile","symbol":"server.key","line":3,"lang":"es","candidates":[{"text":"File: tests/certs/expired/ca/Makefile\nLine 6: openssl genrsa -out ca-private.key 2048","file":"tests/certs/expired/ca/Makefile","line":6,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/expired/server/Makefile\nLine 4: openssl genrsa -out $@ 2048","file":"tests/certs/expired/server/Makefile","line":4,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/mtls/client/Makefile\nLine 4: openssl genrsa -out $@ 2048","file":"tests/certs/mtls/client/Makefile","line":4,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/certs/valid/server/Makefile\nLine 4: openssl genrsa -out $@ 2048","file":"tests/certs/valid/server/Makefile","line":4,"lexical":0.39999999999999997,"target":true}]}
{"site":"project_search","repo":"requests","task":"Where is the error raised when the connection attempt to the server exceeds the set limit?","query":"connection timeout error","file":"src/requests/exceptions.py","symbol":"ConnectTimeout","line":91,"lang":"en","candidates":[{"text":"File: HISTORY.md\nLine 2000: - URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as","file":"HISTORY.md","line":2000,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/exceptions.py\nLine 91: class ConnectTimeout(ConnectionError, Timeout):","file":"src/requests/exceptions.py","line":91,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_requests.py\nLine 1532: (urllib3.exceptions.ReadTimeoutError, (None, \"\", \"\"), ConnectionError),","file":"tests/test_requests.py","line":1532,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"busca la función que obtiene una variable de entorno ignorando mayúsculas o minúsculas","query":"get proxy env","file":"src/requests/utils.py","symbol":"get_proxy","line":819,"lang":"es","candidates":[{"text":"File: src/requests/sessions.py\nLine 848: env_proxies = get_environ_proxies(url, no_proxy=no_proxy)","file":"src/requests/sessions.py","line":848,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 873: def get_environ_proxies(url: str, no_proxy: str | None = None) -> dict[str, str]:","file":"src/requests/utils.py","line":873,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/utils.py\nLine 933: environ_proxies = get_environ_proxies(url, no_proxy=no_proxy)","file":"src/requests/utils.py","line":933,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/utils.py\nLine 935: proxy = environ_proxies.get(scheme, environ_proxies.get(\"all\"))","file":"src/requests/utils.py","line":935,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_requests.py\nLine 641: def test_respect_proxy_env_on_get(self, httpbin):","file":"tests/test_requests.py","line":641,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 242: assert get_environ_proxies(url, no_proxy=None) == {}","file":"tests/test_utils.py","line":242,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 253: assert get_environ_proxies(url, no_proxy=None) != {}","file":"tests/test_utils.py","line":253,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 265: assert get_environ_proxies(url, no_proxy=no_proxy) == {}","file":"tests/test_utils.py","line":265,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_utils.py\nLine 282: assert get_environ_proxies(url, no_proxy=no_proxy) != {}","file":"tests/test_utils.py","line":282,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Cuando se cierra la respuesta de una solicitud, ¿por qué no se libera la conexión al pool si el contenido aún no ha sido consumido completamente? Parece que debería cerrarse el objeto raw en ese caso para evitar fugas de recursos.","query":"release connection pool","file":"src/requests/models.py","symbol":"close","line":1173,"lang":"es","candidates":[{"text":"File: docs/user/advanced.rst\nLine 325: release the connection back to the pool unless you consume all the data or call","file":"docs/user/advanced.rst","line":325,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/user/advanced.rst\nLine 343: Note that connections are only released back to the pool for reuse once all body","file":"docs/user/advanced.rst","line":343,"lexical":0.44999999999999996,"target":false},{"text":"File: src/requests/models.py\nLine 1174: \"\"\"Releases the connection back to the pool. Once this method has been","file":"src/requests/models.py","line":1174,"lexical":0.44999999999999996,"target":true},{"text":"File: src/requests/sessions.py\nLine 221: # Release the connection back into the pool.","file":"src/requests/sessions.py","line":221,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"객체 복사해서 대소문자 구분 없는 딕셔너리로 반환하는 로직 찾아줘","query":"copy case insensitive","file":"src/requests/structures.py","symbol":"copy","line":89,"lang":"ko","candidates":[{"text":"File: src/requests/structures.py\nLine 89: def copy(self) -> CaseInsensitiveDict[_VT]:","file":"src/requests/structures.py","line":89,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/test_structures.py\nLine 38: copy = self.case_insensitive_dict.copy()","file":"tests/test_structures.py","line":38,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_structures.py\nLine 39: assert copy is not self.case_insensitive_dict","file":"tests/test_structures.py","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/test_structures.py\nLine 40: assert copy == self.case_insensitive_dict","file":"tests/test_structures.py","line":40,"lexical":0.44999999999999996,"target":false}]}
{"site":"project_search","repo":"requests","task":"Onde posso encontrar a lista de ferramentas e complementos sugeridos para o projeto?","query":"recommended packages extensions","file":"docs/community/recommended.rst","symbol":"Recommended Packages and Extensions","line":3,"lang":"pt","candidates":[{"text":"File: docs/_templates/sidebar.html\nLine 26: <li><a href=\"{{ pathto('community/recommended') }}\">{{ _('Recommended Packages and Extensions') }}</a></li>","file":"docs/_templates/sidebar.html","line":26,"lexical":0.44999999999999996,"target":false},{"text":"File: docs/community/recommended.rst\nLine 3: Recommended Packages and Extensions","file":"docs/community/recommended.rst","line":3,"lexical":0.65,"target":true}]}