![]() |
MHEG5
18.9.0
MHEG5 Documentation
|
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <glue_memory.h>
#include "http_header.h"
Go to the source code of this file.
Classes | |
struct | sToken |
Macros | |
#define | MAX_FIELD_NAME (32) |
#define | MAX_CONTENT_LENGTH (24) |
#define | DBG(x) |
Typedefs | |
typedef struct sToken | Token |
Enumerations | |
enum | TokenType { TOKEN_NUMBER = '0', TOKEN_BYTES = 'b', TOKEN_SPACE = ' ', TOKEN_HYPHEN = '-', TOKEN_SLASH = '/', TOKEN_ASTERISK = '*' } |
Functions | |
U8BIT * | httpHdrParseFieldName (U8BIT *data, U32BIT len, E_HTTP_FIELD *field) |
Parse field for its name in an HTTP header. More... | |
U64BIT | httpHdrParseContentLength (U8BIT *data, U32BIT len) |
Parse "Content-Length" header and return the content length in bytes. More... | |
U64BIT | httpHdrParseContentRange (U8BIT *data, U32BIT len) |
Parse "Content-Range" header and return the content length in bytes. More... | |
Definition in file http_header.c.
#define DBG | ( | x | ) |
Definition at line 39 of file http_header.c.
#define MAX_CONTENT_LENGTH (24) |
Definition at line 37 of file http_header.c.
#define MAX_FIELD_NAME (32) |
Definition at line 36 of file http_header.c.
enum TokenType |
Enumerator | |
---|---|
TOKEN_NUMBER | |
TOKEN_BYTES | |
TOKEN_SPACE | |
TOKEN_HYPHEN | |
TOKEN_SLASH | |
TOKEN_ASTERISK |
Definition at line 44 of file http_header.c.
Parse "Content-Length" header and return the content length in bytes.
data | Header data |
len | Size of header data in bytes |
Definition at line 147 of file http_header.c.
Parse "Content-Range" header and return the content length in bytes.
data | Header data |
len | Size of header data in bytes |
Definition at line 177 of file http_header.c.
U8BIT* httpHdrParseFieldName | ( | U8BIT * | data, |
U32BIT | len, | ||
E_HTTP_FIELD * | field | ||
) |
Parse field for its name in an HTTP header.
data | Header data |
len | Size of header data in bytes |
field | pointer to enum value for the field type |
Definition at line 78 of file http_header.c.