|
||||
File indexing completed on 2025-01-18 09:55:12
0001 /* 0002 * This File is part of Davix, The IO library for HTTP based protocols 0003 * Copyright (C) CERN 2013 0004 * Author: Adrien Devresse <adrien.devresse@cern.ch> 0005 * 0006 * This library is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU Lesser General Public 0008 * License as published by the Free Software Foundation; either 0009 * version 2.1 of the License, or (at your option) any later version. 0010 * 0011 * This library is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 * Lesser General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU Lesser General Public 0017 * License along with this library; if not, write to the Free Software 0018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0019 * 0020 */ 0021 0022 0023 #ifndef DAVIX_HOOKS_FWD_HPP 0024 #define DAVIX_HOOKS_FWD_HPP 0025 0026 #include <utils/davix_types.hpp> 0027 #include <request/httprequest.hpp> 0028 0029 0030 /** 0031 @file davix_hooks_fwd.hpp 0032 @author Devresse Adrien 0033 @brief Hook definitions of davix 0034 */ 0035 0036 0037 0038 namespace Davix{ 0039 0040 class HttpRequest; 0041 class RequestParams; 0042 class Uri; 0043 0044 0045 #ifdef __DAVIX_HAS_STD_FUNCTION 0046 0047 /// Hook called before processing any request 0048 typedef std::function< void (RequestParams& p, HttpRequest & req, Uri & u) > RequestPreRunHook; 0049 0050 /// Hook called when sending any request, just after sending headers 0051 typedef std::function<void (HttpRequest& req, const std::string & start_line) > RequestPreSendHook; 0052 0053 /// Hook called when receiving any request, just after receiving headers 0054 typedef std::function<void (HttpRequest& req, const std::string & init_line, const HeaderVec & headers, int status_code) > RequestPreReceHook; 0055 0056 0057 #endif 0058 0059 } 0060 0061 0062 #endif // DAVIX_HOOKS_FWD_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |