forked from loafle/openapi-generator-original
[cpp rest-sdk] Reponse headers handler (#1511)
* Add support to set a Response headers handler * Update PetStore * Fix missing names * Update PetStore
This commit is contained in:
committed by
sunn
parent
cf04ba30db
commit
dd33434064
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.3-SNAPSHOT.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_client.h>
|
||||
@@ -43,6 +44,11 @@ public:
|
||||
ApiClient( std::shared_ptr<ApiConfiguration> configuration = nullptr );
|
||||
virtual ~ApiClient();
|
||||
|
||||
typedef std::function<void(const web::http::http_headers&)> ResponseHeadersHandlerType;
|
||||
|
||||
const ResponseHeadersHandlerType& getResponseHeadersHandler() const;
|
||||
void setResponseHeadersHandler(const ResponseHeadersHandlerType& responseHeadersHandler);
|
||||
|
||||
std::shared_ptr<ApiConfiguration> getConfiguration() const;
|
||||
void setConfiguration(std::shared_ptr<ApiConfiguration> configuration);
|
||||
|
||||
@@ -68,6 +74,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
ResponseHeadersHandlerType m_ResponseHeadersHandler;
|
||||
std::shared_ptr<ApiConfiguration> m_Configuration;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user