1 /* req_resp_hdrs.h
2  * Declarations of routines handling protocols with a request/response line,
3  * headers, a blank line, and an optional body.
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef __REQ_RESP_HDRS_H__
13 #define __REQ_RESP_HDRS_H__
14 
15 #include "ws_symbol_export.h"
16 
17 /**
18  * Optionally do reassembly of the request/response line, headers, and body.
19  *
20  *  @param tvb  The buffer.
21  *  @param offset   The offset in the buffer to begin inspection.
22  *  @param pinfo    Packet info from the parent protocol.
23  *  @param desegment_headers    Do desegmentation on headers.
24  *  @param desegment_body   Do desegmentation on body.
25  *  @param desegment_until_fin  When desegment_body is enabled and no
26  *  Content-Length header is found, assume that all data following the headers
27  *  are part of the body.
28  *  @return TRUE if desegmentation is complete otherwise FALSE
29  */
30 WS_DLL_PUBLIC gboolean
31 req_resp_hdrs_do_reassembly(tvbuff_t *tvb, const  int offset, packet_info *pinfo,
32     const gboolean desegment_headers, const gboolean desegment_body,
33     gboolean desegment_until_fin);
34 
35 #endif
36