From fd91a6adede7af1f477f8858a7109351d9899417 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 25 Nov 2020 21:19:13 +0100 Subject: implement first new client API --- src/include/taler_exchange_service.h | 40 ------------------------------------ 1 file changed, 40 deletions(-) (limited to 'src/include/taler_exchange_service.h') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index b3235e328..fa1cfde49 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -2039,46 +2039,6 @@ struct TALER_EXCHANGE_FutureKeys }; -/** - * General information about the HTTP response we obtained - * from the exchange for a request. - */ -struct TALER_EXCHANGE_HttpResponse -{ - - /** - * The complete JSON reply. NULL if we failed to parse the - * reply (too big, invalid JSON). - */ - const json_t *reply; - - /** - * Set to the human-readable 'hint' that is optionally - * provided by the exchange together with errors. NULL - * if no hint was provided or if there was no error. - */ - const char *hint; - - /** - * HTTP status code for the response. 0 if the - * HTTP request failed and we did not get any answer, or - * if the answer was invalid and we set @a ec to a - * client-side error code. - */ - unsigned int http_status; - - /** - * Taler error code. #TALER_EC_NONE if everything was - * OK. Usually set to the "code" field of an error - * response, but may be set to values created at the - * client side, for example when the response was - * not in JSON format or was otherwise ill-formed. - */ - enum TALER_ErrorCode ec; - -}; - - /** * Function called with information about future keys. * -- cgit v1.2.3