bitz-server  2.0.0
options_request_handler.h
1 /*
2  * bitz-server, An ICAP server implementation in C++
3  * Copyright (C) 2012 Uditha Atukorala
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */
19 
20 #ifndef BITZ_OPTIONS_REQUEST_HANDLER_H
21 #define BITZ_OPTIONS_REQUEST_HANDLER_H
22 
23 #include "request_handler.h"
24 
25 
26 namespace bitz {
27 
29  public:
31  virtual ~OptionsRequestHandler();
32 
33  icap::Response * process( icap::RequestHeader * req_header, psocksxx::iosockstream * socket ) throw();
34 
41  void register_handler( RequestHandler * req_handler ) throw();
42 
43  private:
44  std::vector<std::string> _methods;
45 
46  };
47 
48 } /* end of namespace bitz */
49 
50 #endif /* !BITZ_OPTIONS_REQUEST_HANDLER_H */
51 
Definition: response.h:29
Definition: echo.cpp:23
Definition: request_header.h:31
icap::Response * process(icap::RequestHeader *req_header, psocksxx::iosockstream *socket)
Definition: options_request_handler.cpp:29
Definition: options_request_handler.h:28
void register_handler(RequestHandler *req_handler)
Definition: options_request_handler.cpp:48
Definition: request_handler.h:33