"Fossies" - the Fresh Open Source Software Archive

Member "haproxy-2.0.0/include/types/http_htx.h" (16 Jun 2019, 1227 Bytes) of package /linux/misc/haproxy-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "http_htx.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * include/types/http_htx.h
    3  * This file defines everything related to HTTP manipulation using the internal
    4  * representation.
    5  *
    6  * Copyright (C) 2018 HAProxy Technologies, Christopher Faulet <cfaulet@haproxy.com>
    7  *
    8  * This library is free software; you can redistribute it and/or
    9  * modify it under the terms of the GNU Lesser General Public
   10  * License as published by the Free Software Foundation, version 2.1
   11  * exclusively.
   12  *
   13  * This library is distributed in the hope that it will be useful,
   14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   16  * Lesser General Public License for more details.
   17  *
   18  * You should have received a copy of the GNU Lesser General Public
   19  * License along with this library; if not, write to the Free Software
   20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
   21  */
   22 
   23 #ifndef _TYPES_HTTP_HTX_H
   24 #define _TYPES_HTTP_HTX_H
   25 
   26 #include <common/htx.h>
   27 #include <common/ist.h>
   28 
   29 /* Context used to find/remove an HTTP header. */
   30 struct http_hdr_ctx {
   31     struct htx_blk *blk;
   32     struct ist     value;
   33     uint16_t       lws_before;
   34     uint16_t       lws_after;
   35 };
   36 
   37 #endif /* _TYPES_HTTP_HTX_H */