Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cocoindex-io/cocoindex-code
/ decode_request
Function
decode_request
src/cocoindex_code/protocol.py:220–222 ·
view source on GitHub ↗
(data: bytes)
Source
from the content-addressed store, hash-verified
218
219
220
def
decode_request(data: bytes) -> Request:
221
result: Request = _request_decoder.decode(data)
222
return
result
223
224
225
def
encode_response(resp: Response) -> bytes:
Callers
9
test_encode_decode_handshake_request
Function · 0.90
test_encode_decode_search_request_with_defaults
Function · 0.90
test_encode_decode_search_request_with_all_fields
Function · 0.90
test_tagged_union_dispatch
Function · 0.90
test_encode_decode_doctor_request
Function · 0.90
test_encode_decode_doctor_request_no_project
Function · 0.90
test_encode_decode_daemon_env_request
Function · 0.90
test_all_request_types_round_trip
Function · 0.90
handle_connection
Function · 0.85
Calls
no outgoing calls
Tested by
8
test_encode_decode_handshake_request
Function · 0.72
test_encode_decode_search_request_with_defaults
Function · 0.72
test_encode_decode_search_request_with_all_fields
Function · 0.72
test_tagged_union_dispatch
Function · 0.72
test_encode_decode_doctor_request
Function · 0.72
test_encode_decode_doctor_request_no_project
Function · 0.72
test_encode_decode_daemon_env_request
Function · 0.72
test_all_request_types_round_trip
Function · 0.72