From c365689250216861fd7727203ee6ba1049ad5778 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 3 Apr 2019 10:03:56 +0200 Subject: [HICN-155] Consumer socket allows now to read N bytes from the network, where N is defined by the application. Change-Id: Ib20309b40e43e4c0db09b9b484e18cd2e3ebf581 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/http/server_acceptor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libtransport/src/hicn/transport/http/server_acceptor.h') diff --git a/libtransport/src/hicn/transport/http/server_acceptor.h b/libtransport/src/hicn/transport/http/server_acceptor.h index 99480028a..4e7350b76 100644 --- a/libtransport/src/hicn/transport/http/server_acceptor.h +++ b/libtransport/src/hicn/transport/http/server_acceptor.h @@ -15,7 +15,6 @@ #pragma once -#include #include #include #include @@ -31,6 +30,9 @@ namespace http { class HTTPServerAcceptor { friend class HTTPServerPublisher; + using OnHttpRequest = + std::function &, + const uint8_t *, std::size_t, int request_id)>; public: HTTPServerAcceptor(std::string &&server_locator, OnHttpRequest callback); -- cgit 1.2.3-korg