Wire protocol
Both generated sides speak the same protocol, which this page describes. It matters when you call a Nomi server from something that is not Nomi, or the other way around.
Status codes
| Status | When |
|---|---|
|
A successful call; the body is the serialized |
|
A successful call with nothing to return — |
|
A business failure; the body is the serialized |
|
A path or query parameter’s |
(anything else) |
Whatever |
Serialization
Serialization itself is entirely yours to configure: Nomi never reads or writes a negotiated body.
Register ktor’s ContentNegotiation with the same format on both the server and the client.
JSON, CBOR, ProtoBuf or anything else ktor supports works identically.
A multipart/form-data body is the one exception, and only partly.
Nomi writes and reads the multipart envelope itself — the part names, the file names, the boundaries — because those are what it declared.
Each part’s content is still yours, through its Stringer (see Multipart form data).