Skip to main content

Module http

Module http 

Source
Expand description

JSON DTOs shared by the HTTP/JSON transport (server handlers and the reqwest client). The gRPC transport carries the same gonzalo-core types as JSON bytes, so both transports agree on serialization.

Structs§

DeleteBody
Body of DELETE /v1/records/{ns}/{col}/{id}. The key is addressed by the URL path; the body carries only the OCC precondition.
PutBody
Body of PUT /v1/records/{ns}/{col}/{id}.

Enums§

DeleteOutcome
Response of a DELETE: mirrors gonzalo_core::DeleteResult on the wire.
PutOutcome
Response of a PUT: mirrors gonzalo_core::PutResult on the wire.