Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cocoindex-io/cocoindex-code
/ encode_response
Function
encode_response
src/cocoindex_code/protocol.py:225–226 ·
view source on GitHub ↗
(resp: Response)
Source
from the content-addressed store, hash-verified
223
224
225
def
encode_response(resp: Response) -> bytes:
226
return
_response_encoder.encode(resp)
227
228
229
def
decode_response(data: bytes) -> Response:
Callers
12
test_encode_decode_search_response_with_results
Function · 0.90
test_encode_decode_error_response
Function · 0.90
test_encode_decode_daemon_status_response
Function · 0.90
test_encode_decode_doctor_response
Function · 0.90
test_encode_decode_doctor_response_final
Function · 0.90
test_encode_decode_daemon_env_response
Function · 0.90
test_encode_decode_index_waiting_notice
Function · 0.90
test_encode_decode_index_progress_update
Function · 0.90
test_encode_decode_project_status_with_progress
Function · 0.90
test_encode_decode_project_status_without_progress
Function · 0.90
test_all_response_types_round_trip
Function · 0.90
handle_connection
Function · 0.85
Calls
no outgoing calls
Tested by
11
test_encode_decode_search_response_with_results
Function · 0.72
test_encode_decode_error_response
Function · 0.72
test_encode_decode_daemon_status_response
Function · 0.72
test_encode_decode_doctor_response
Function · 0.72
test_encode_decode_doctor_response_final
Function · 0.72
test_encode_decode_daemon_env_response
Function · 0.72
test_encode_decode_index_waiting_notice
Function · 0.72
test_encode_decode_index_progress_update
Function · 0.72
test_encode_decode_project_status_with_progress
Function · 0.72
test_encode_decode_project_status_without_progress
Function · 0.72
test_all_response_types_round_trip
Function · 0.72