Bindings and errors
Every binding has the same shape: Client() with defaults, request(url, options), get, post and version(). Defaults: policy hybrid, the OS
trust store plus caPath if given, HTTP/1.1 or HTTP/2 over TCP (http3 for QUIC), the core’s timeout. Source: mvp/bindings/.
| Go | Python | TypeScript | C# | Java | |
|---|---|---|---|---|---|
| Loads core via | purego (no cgo) | ctypes | koffi | LibraryImport | FFM |
| Needs | Go 1.26 (go.mod) | 3.9+ | Node 24+ | .NET 10 | JDK 22+ |
| Package in repo | bindings/go/unicomm |
bindings/python (unicomm 0.3.0) |
@deemwar/unicomm 0.2.0 |
Deemwar.UniComm 0.2.0 |
bindings/java/UniComm.java |
| Client | unicomm.Client{} |
unicomm.Client() |
new Client({}) |
new UniCommClient{} |
UniComm.builder().build() |
| Policy | Policy field |
policy= |
policy |
Policy property |
.policy(...) |
| Error | *unicomm.Error (Code, Hint) |
UniCommError subclasses |
UniCommError (code, hint) |
UniCommException (Code, Hint) |
UniCommException (code(), hint()) |
Response fields (names follow each language’s casing): status, headers, body, text(), json(), protocol, keyExchange, cipher, policy,
postQuantum. Every error carries a stable code, a message and a hint; the codes are the table in C ABI v2.
HTTP 4xx and 5xx are responses, not errors.
The pure-Go client for apps that cannot load a shared library (for example Android) is separate: mvp/relay/goclient (policy table TLSConfig,
KeyExchange, and the relay shop client Run).
cd mvp && cargo build --release && ./target/release/unicomm server --demo-insecure, then bindings/test-all.sh. Each language’s demo runs the same checks and
prints PASS, FAIL or SKIP lines: version and default policy, hybrid GET, HTTP/3 GET, classical override, pq-required refused on the classical-only port
(PQ_REQUIRED), hybrid interop with that port, pq-required on :8446, an untrusted CA (CERT_UNTRUSTED) and a plain http:// URL (BAD_INPUT).