/usr/include/pion/plugins/EchoService.hpp is in libpion-dev 5.0.7+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // ---------------------------------------------------------------------
// pion: a Boost C++ framework for building lightweight HTTP interfaces
// ---------------------------------------------------------------------
// Copyright (C) 2007-2014 Splunk Inc. (https://github.com/splunk/pion)
//
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
//
#ifndef __PION_ECHOSERVICE_HEADER__
#define __PION_ECHOSERVICE_HEADER__
#include <pion/http/plugin_service.hpp>
namespace pion { // begin namespace pion
namespace plugins { // begin namespace plugins
///
/// EchoService: web service that echos back requests (to test request parsing)
///
class EchoService :
public pion::http::plugin_service
{
public:
EchoService(void) {}
virtual ~EchoService() {}
virtual void operator()(const pion::http::request_ptr& http_request_ptr,
const pion::tcp::connection_ptr& tcp_conn);
};
} // end namespace plugins
} // end namespace pion
#endif
|