/usr/include/pion/plugins/HelloService.hpp is in libpion-dev 5.0.6+dfsg-1build1.
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_HELLOSERVICE_HEADER__
#define __PION_HELLOSERVICE_HEADER__
#include <pion/http/plugin_service.hpp>
namespace pion { // begin namespace pion
namespace plugins { // begin namespace plugins
///
/// HelloService: web service that responds with "Hello World"
///
class HelloService :
public pion::http::plugin_service
{
public:
HelloService(void) {}
virtual ~HelloService() {}
virtual void operator()(pion::http::request_ptr& http_request_ptr,
pion::tcp::connection_ptr& tcp_conn);
};
} // end namespace plugins
} // end namespace pion
#endif
|