From 24acbd12881e2cbf3dd209afc384b1ab4cc3faf8 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 19 Feb 2020 15:49:25 +0100 Subject: [HICN-530] Add support for chunked Transfer-Encoding in higet and http-proxy Change-Id: Ibf954e5e886412a934542a10d94d89bb8a55a676 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/http/response.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libtransport/src/hicn/transport/http/response.h') diff --git a/libtransport/src/hicn/transport/http/response.h b/libtransport/src/hicn/transport/http/response.h index 7ef655059..bab41acb8 100644 --- a/libtransport/src/hicn/transport/http/response.h +++ b/libtransport/src/hicn/transport/http/response.h @@ -42,6 +42,12 @@ class HTTPResponse : public HTTPMessage { bool parseHeaders(std::unique_ptr &&buffer); + static std::size_t parseHeaders(const uint8_t *buffer, std::size_t size, + HTTPHeaders &headers, + std::string &http_version, + std::string &status_code, + std::string &status_string); + private: std::string status_code_; std::string status_string_; -- cgit 1.2.3-korg