Crate postrust_response

Crate postrust_response 

Source
Expand description

Response formatting for Postrust.

Handles content negotiation and response formatting for JSON, CSV, and other formats.

Structs§

ContentRange
Content-Range header value.
QueryResult
Query result for response formatting.
Response
A formatted HTTP response.

Enums§

FormatError
Response formatting error.

Functions§

build_response_headers
Build response headers based on request and result.
format_json_response
Format rows as a JSON array.
format_response
Format a query result as a response.