MHEG5  18.9.0
MHEG5 Documentation
Enumerations | Functions
http_header.h File Reference
#include "techtype.h"
#include "glue_ulong.h"

Go to the source code of this file.

Enumerations

enum  E_HTTP_FIELD {
  HTTP_FIELD_CONTENT_LENGTH, HTTP_FIELD_CONTENT_RANGE, HTTP_FIELD_CONTENT_TYPE, HTTP_FIELD_X_KEYS,
  HTTP_FIELD_X_KEY_LOCATION, HTTP_FIELD_X_BYTES_PER_SECOND, HTTP_FIELD_UNKNOWN
}
 

Functions

U8BIThttpHdrParseFieldName (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...
 

Detailed Description

Date
20/12/2012
Author
Adam Sturtridge

Definition in file http_header.h.

Enumeration Type Documentation

Enumerator
HTTP_FIELD_CONTENT_LENGTH 
HTTP_FIELD_CONTENT_RANGE 
HTTP_FIELD_CONTENT_TYPE 
HTTP_FIELD_X_KEYS 
HTTP_FIELD_X_KEY_LOCATION 
HTTP_FIELD_X_BYTES_PER_SECOND 
HTTP_FIELD_UNKNOWN 

Definition at line 39 of file http_header.h.

Function Documentation

U64BIT httpHdrParseContentLength ( U8BIT data,
U32BIT  len 
)

Parse "Content-Length" header and return the content length in bytes.

Parameters
dataHeader data
lenSize of header data in bytes
Returns
Content length, invalid if cannot be parsed

Definition at line 147 of file http_header.c.

U64BIT httpHdrParseContentRange ( U8BIT data,
U32BIT  len 
)

Parse "Content-Range" header and return the content length in bytes.

Parameters
dataHeader data
lenSize of header data in bytes
Returns
Content length, invalid if cannot be parsed

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.

Parameters
dataHeader data
lenSize of header data in bytes
fieldpointer to enum value for the field type
Returns
byte pointer to beginning of field data

Definition at line 78 of file http_header.c.