Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cocoindex-io/cocoindex-code
/ encode_request
Function
encode_request
src/cocoindex_code/protocol.py:216–217 ·
view source on GitHub ↗
(req: Request)
Source
from the content-addressed store, hash-verified
214
215
216
def
encode_request(req: Request) -> bytes:
217
return
_request_encoder.encode(req)
218
219
220
def
decode_request(data: bytes) -> Request:
Callers
15
daemon_sock
Function · 0.90
daemon_project
Function · 0.90
_connect_and_handshake
Function · 0.90
test_daemon_rejects_version_mismatch
Function · 0.90
test_daemon_status
Function · 0.90
test_daemon_project_status_after_index
Function · 0.90
test_daemon_search_after_index
Function · 0.90
test_index_streams_progress
Function · 0.90
test_daemon_remove_project
Function · 0.90
test_daemon_remove_project_not_loaded
Function · 0.90
test_daemon_search_waits_during_explicit_index
Function · 0.90
test_daemon_search_waits_for_load_time_indexing
Function · 0.90
Calls
no outgoing calls
Tested by
15
daemon_sock
Function · 0.72
daemon_project
Function · 0.72
_connect_and_handshake
Function · 0.72
test_daemon_rejects_version_mismatch
Function · 0.72
test_daemon_status
Function · 0.72
test_daemon_project_status_after_index
Function · 0.72
test_daemon_search_after_index
Function · 0.72
test_index_streams_progress
Function · 0.72
test_daemon_remove_project
Function · 0.72
test_daemon_remove_project_not_loaded
Function · 0.72
test_daemon_search_waits_during_explicit_index
Function · 0.72
test_daemon_search_waits_for_load_time_indexing
Function · 0.72