- Rename
add_status!toassign_status!to better reflect its purpose of assigning status information to headers or trailers.
- Server-side errors now automatically include backtraces in response headers when an error object is provided. Backtraces are transmitted as arrays via Split headers and can be extracted by clients.
- Consolidated
add_status_trailer!,add_status_header!,build_status_headers,prepare_trailers!, andbuild_trailers_only_responseinto a singleadd_status!method. Whether status becomes headers or trailers is now controlled by the protocol layer. - Renamed
trailers_only_errortomake_responseand inlined response creation logic. The method now accepts anerror:parameter for automatic backtrace extraction.
- Add
RPC#name.
- Breaking:
Protocol::GRPC::Callnow takes aresponseobject parameter instead of separateresponse_headers. - Breaking: Removed
Call#response_headersmethod. Usecall.response.headersdirectly. - Added
RPC#streaming?method to check if an RPC is streaming.
RPC#methodis always defined (snake case).
- Initial design.