chiark / gitweb /
client: Instrudoce api_request_ok and api_request_raw
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Feb 2024 21:07:47 +0000 (21:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Feb 2024 22:57:23 +0000 (22:57 +0000)
commit93ac212c275338bac6fccd12ffa936a03d07ce9a
tree810b7f9d11ec97517aa2cf2bd1622ca44806bbc5
parentd1379aa0291bd50795a49b5dced17edc36a06675
client: Instrudoce api_request_ok and api_request_raw

This avoids open-coded (and easy-to-forget) error handling at each
call site.

Presently, the only caller of api_request_raw is api_request_success,
because the sites that want anything else are open-coding
execute_and_log_request etc.
src/client.rs