proxygen
wangle::AppendFilter Class Reference
Inheritance diagram for wangle::AppendFilter:
wangle::ServiceFilter< std::string, std::string > wangle::Service< std::string, std::string >

Public Member Functions

 AppendFilter (std::shared_ptr< Service< std::string, std::string >> service)
 
Future< std::stringoperator() (std::string req) override
 
- Public Member Functions inherited from wangle::ServiceFilter< std::string, std::string >
 ServiceFilter (std::shared_ptr< Service< std::string, std::string >> service)
 
 ~ServiceFilter () override=default
 
folly::Future< folly::Unitclose () override
 
bool isAvailable () override
 
- Public Member Functions inherited from wangle::Service< std::string, std::string >
virtual ~Service ()=default
 

Additional Inherited Members

- Protected Attributes inherited from wangle::ServiceFilter< std::string, std::string >
std::shared_ptr< Service< std::string, std::string > > service_
 

Detailed Description

Definition at line 141 of file ServiceTest.cpp.

Constructor & Destructor Documentation

wangle::AppendFilter::AppendFilter ( std::shared_ptr< Service< std::string, std::string >>  service)
inlineexplicit

Member Function Documentation

Future<std::string> wangle::AppendFilter::operator() ( std::string  req)
inlineoverridevirtual

Implements wangle::Service< std::string, std::string >.

Definition at line 147 of file ServiceTest.cpp.

147  {
148  return (*service_)(req + "\n");
149  }
std::shared_ptr< Service< std::string, std::string > > service_
Definition: Service.h:82

The documentation for this class was generated from the following file: