Spaces:
Sleeping
Sleeping
Download .venv/lib/python3.12/site-packages/httptools/parser/protocol.py from brocode12/bell-backend: direct link, hf CLI and curl.
- Browser
- Download file 586 Bytes
-
https://huggingface.co/spaces/brocode12/bell-backend/resolve/main/.venv/lib/python3.12/site-packages/httptools/parser/protocol.py
- Command line
-
hf download hf://spaces/brocode12/bell-backend/.venv/lib/python3.12/site-packages/httptools/parser/protocol.py
-
curl -L -o protocol.py https://huggingface.co/spaces/brocode12/bell-backend/resolve/main/.venv/lib/python3.12/site-packages/httptools/parser/protocol.py
586 Bytes
| from typing import Protocol | |
| class HTTPProtocol(Protocol): | |
| """Used for providing static type-checking when parsing through the http protocol""" | |
| def on_message_begin(self) -> None: ... | |
| def on_url(self, url: bytes) -> None: ... | |
| def on_header(self, name: bytes, value: bytes) -> None: ... | |
| def on_headers_complete(self) -> None: ... | |
| def on_body(self, body: bytes) -> None: ... | |
| def on_message_complete(self) -> None: ... | |
| def on_chunk_header(self) -> None: ... | |
| def on_chunk_complete(self) -> None: ... | |
| def on_status(self, status: bytes) -> None: ... | |