From f986d138ea1239d86e51a73b771267db89789500 Mon Sep 17 00:00:00 2001 From: "huayong.xu" Date: Wed, 19 Jan 2022 18:20:50 +0800 Subject: [PATCH] Set http response body in binary format. Change-Id: I44d59e7071f429c7a6a50d4c5a99c01d27bc4413 --- dali/devel-api/adaptor-framework/web-engine-request-interceptor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dali/devel-api/adaptor-framework/web-engine-request-interceptor.h b/dali/devel-api/adaptor-framework/web-engine-request-interceptor.h index d777c63..aa8889d 100755 --- a/dali/devel-api/adaptor-framework/web-engine-request-interceptor.h +++ b/dali/devel-api/adaptor-framework/web-engine-request-interceptor.h @@ -2,7 +2,7 @@ #define DALI_WEB_ENGINE_REQUEST_INTERCEPTOR_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -110,7 +110,7 @@ public: * * @return true if succeeded or false otherwise */ - virtual bool AddResponseBody(const std::string& body, uint32_t length) = 0; + virtual bool AddResponseBody(const int8_t* body, uint32_t length) = 0; /** * @brief Writes whole response at once. @@ -121,7 +121,7 @@ public: * * @return true if succeeded or false otherwise */ - virtual bool AddResponse(const std::string& headers, const std::string& body, uint32_t length) = 0; + virtual bool AddResponse(const std::string& headers, const int8_t* body, uint32_t length) = 0; /** * @brief Writes a part of response body. @@ -136,7 +136,7 @@ public: * * @return true if succeeded or false otherwise */ - virtual bool WriteResponseChunk(const std::string& chunk, uint32_t length) = 0; + virtual bool WriteResponseChunk(const int8_t* chunk, uint32_t length) = 0; }; using WebEngineRequestInterceptorPtr = Dali::IntrusivePtr; -- 2.7.4