MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
http_header.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2012 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _HTTP_HEADER_H
26 #define _HTTP_HEADER_H
27 
28 /*---includes for this file--------------------------------------------------*/
29 
30 #include "techtype.h"
31 #include "glue_ulong.h"
32 
33 /*---Constant and macro definitions for public use---------------------------*/
34 
35 /*---Enumerations for public use---------------------------------------------*/
36 
37 /*---Global type defs for public use-----------------------------------------*/
38 
39 typedef enum
40 {
41  HTTP_FIELD_CONTENT_LENGTH,
42  HTTP_FIELD_CONTENT_RANGE,
43  HTTP_FIELD_CONTENT_TYPE,
44  HTTP_FIELD_X_KEYS,
45  HTTP_FIELD_X_KEY_LOCATION,
46  HTTP_FIELD_X_BYTES_PER_SECOND,
47  HTTP_FIELD_UNKNOWN
48 } E_HTTP_FIELD;
49 
50 
51 /*---Global variable declarations for public use-----------------------------*/
52 
53 /*---Global Function prototypes for public use-------------------------------*/
54 
62 U8BIT* httpHdrParseFieldName(U8BIT *data, U32BIT len, E_HTTP_FIELD *field);
63 
64 
71 U64BIT httpHdrParseContentLength(U8BIT *data, U32BIT len);
72 
79 U64BIT httpHdrParseContentRange(U8BIT *data, U32BIT len);
80 
81 #endif /*_HTTP_HEADER_H*/
U8BIT * httpHdrParseFieldName(U8BIT *data, U32BIT len, E_HTTP_FIELD *field)
Parse field for its name in an HTTP header.
Definition: http_header.c:78
U64BIT httpHdrParseContentRange(U8BIT *data, U32BIT len)
Parse "Content-Range" header and return the content length in bytes.
Definition: http_header.c:177
System Wide Global Technical Data Type Definitions.
U64BIT httpHdrParseContentLength(U8BIT *data, U32BIT len)
Parse "Content-Length" header and return the content length in bytes.
Definition: http_header.c:147
Definition: glue_ulong.h:109