Download venv/lib/python3.13/site-packages/urllib3/contrib/emscripten/request.py from dheeena/MRI: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/dheeena/MRI/resolve/main/venv/lib/python3.13/site-packages/urllib3/contrib/emscripten/request.py
- Command line
-
hf download hf://dheeena/MRI/venv/lib/python3.13/site-packages/urllib3/contrib/emscripten/request.py
-
curl -L -o request.py https://huggingface.co/dheeena/MRI/resolve/main/venv/lib/python3.13/site-packages/urllib3/contrib/emscripten/request.py
566 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass, field | |
| from ..._base_connection import _TYPE_BODY | |
| class EmscriptenRequest: | |
| method: str | |
| url: str | |
| params: dict[str, str] | None = None | |
| body: _TYPE_BODY | None = None | |
| headers: dict[str, str] = field(default_factory=dict) | |
| timeout: float = 0 | |
| decode_content: bool = True | |
| def set_header(self, name: str, value: str) -> None: | |
| self.headers[name.capitalize()] = value | |
| def set_body(self, body: _TYPE_BODY | None) -> None: | |
| self.body = body | |