Christopher Faulet | 3d97c90 | 2015-12-09 14:59:38 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * include/proto/flt_http_comp.h |
| 3 | * This file defines function prototypes for the compression filter. |
| 4 | * |
| 5 | * Copyright (C) 2015 Qualys Inc., Christopher Faulet <cfaulet@qualys.com> |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation, version 2.1 |
| 10 | * exclusively. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ |
| 21 | #ifndef _PROTO_FLT_HTTP_COMP_H |
| 22 | #define _PROTO_FLT_HTTP_COMP_H |
| 23 | |
| 24 | /* NOTE: This is a temporary header file. It will be removed when the |
| 25 | * compression filter will added */ |
| 26 | |
| 27 | #include <common/buffer.h> |
| 28 | #include <types/stream.h> |
| 29 | |
| 30 | int select_compression_request_header(struct stream *s, struct buffer *req); |
| 31 | int select_compression_response_header(struct stream *s, struct buffer *res); |
| 32 | |
| 33 | int http_compression_buffer_init(struct stream *s, struct buffer *in, struct buffer *out); |
| 34 | int http_compression_buffer_add_data(struct stream *s, struct buffer *in, struct buffer *out); |
| 35 | int http_compression_buffer_end(struct stream *s, struct buffer **in, struct buffer **out, int end); |
| 36 | |
| 37 | |
| 38 | #endif /* _PROTO_FLT_HTTP_COMP_H */ |