diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-04-03 10:03:56 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-04-15 11:37:30 +0200 |
commit | c365689250216861fd7727203ee6ba1049ad5778 (patch) | |
tree | 97f1f3d1a6cb7314f1292d97be6d8e8e06cc998b /libtransport/src/hicn/transport/http/server_acceptor.h | |
parent | d8ce6d98a2a726393655bd71eb81b8ef5222d6ba (diff) |
[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 <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/http/server_acceptor.h')
-rw-r--r-- | libtransport/src/hicn/transport/http/server_acceptor.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <hicn/transport/http/callbacks.h> #include <hicn/transport/http/default_values.h> #include <hicn/transport/http/request.h> #include <hicn/transport/http/server_publisher.h> @@ -31,6 +30,9 @@ namespace http { class HTTPServerAcceptor { friend class HTTPServerPublisher; + using OnHttpRequest = + std::function<void(std::shared_ptr<HTTPServerPublisher> &, + const uint8_t *, std::size_t, int request_id)>; public: HTTPServerAcceptor(std::string &&server_locator, OnHttpRequest callback); |