httpmessage
0.4.0
HTTP message parsing library
|
Functions | |
HTTPMESSAGE_C_BEGIN HMAPI int | httpmessage_text_is_CHAR (int c) |
Indicates if the given character is a character. More... | |
HMAPI int | httpmessage_text_is_UPALPHA (int c) |
Indicates if the given character is an uppercase ASCII letter. More... | |
HMAPI int | httpmessage_text_is_LUALPHA (int c) |
Indicates if the given character is a lowercase ASCII letter. More... | |
HMAPI int | httpmessage_text_is_ALPHA (int c) |
Indicates if the given character is a ASCII letter. More... | |
HMAPI int | httpmessage_text_is_DIGIT (int c) |
Indicates if the given character is a digit. More... | |
HMAPI int | httpmessage_text_is_CTL (int c) |
Indicases if the given character is a control character. More... | |
HMAPI int | httpmessage_text_is_LWS (int c) |
Indicates if the given character is a linear white space. More... | |
HMAPI int | httpmessage_text_is_CRLF (const char *text, size_t length) |
Indicates if the given text is an end of line sequence. More... | |
int | httpmessage_text_is_TEXT (int c) |
Indicates if the given character mathc the TEXT rule. More... | |
HMAPI int | httpmessage_text_is_separator (int c) |
Indicates if the given character is a token separator. More... | |
HMAPI int | httpmessage_text_is_token_char (int c) |
Indicates if the given character is a valid token character. More... | |
HMAPI int | httpmessage_token_consume (const char **token, size_t *token_length, const char *text, size_t length) |
Read a RFC2616 token. More... | |
HMAPI ssize_t | httpmessage_quoted_string_length (const char *text, size_t length) |
Get the unescaped string length of a quoted string. More... | |
HMAPI int | httpmessage_quoted_string_consume (char *output, size_t output_size, const char *text, size_t length) |
Unescape a quoted string text. More... | |
HMAPI int httpmessage_quoted_string_consume | ( | char * | output, |
size_t | output_size, | ||
const char * | text, | ||
size_t | length | ||
) |
Unescape a quoted string text.
output | Unescaped text output buffer |
output_size | Output buffer size |
text | Quoted string input text |
length | Ouoted string input text length |
HMAPI ssize_t httpmessage_quoted_string_length | ( | const char * | text, |
size_t | length | ||
) |
Get the unescaped string length of a quoted string.
text | Quoted string text, including leading and trailing quote. |
length | Quoted string length |
HMAPI int httpmessage_text_is_ALPHA | ( | int | c | ) |
Indicates if the given character is a ASCII letter.
c | Character to test |
is
a letter. HTTPMESSAGE_C_BEGIN HMAPI int httpmessage_text_is_CHAR | ( | int | c | ) |
Indicates if the given character is a character.
c | Character to test |
is
a character. HMAPI int httpmessage_text_is_CRLF | ( | const char * | text, |
size_t | length | ||
) |
Indicates if the given text is an end of line sequence.
text | Text to test |
length | Text length |
HMAPI int httpmessage_text_is_CTL | ( | int | c | ) |
Indicases if the given character is a control character.
c | Character to test |
is
a control character HMAPI int httpmessage_text_is_DIGIT | ( | int | c | ) |
Indicates if the given character is a digit.
c | Character to test |
is
a digit HMAPI int httpmessage_text_is_LUALPHA | ( | int | c | ) |
Indicates if the given character is a lowercase ASCII letter.
c | Character to test |
is
lowercase letter. HMAPI int httpmessage_text_is_LWS | ( | int | c | ) |
Indicates if the given character is a linear white space.
c | Character to test |
HMAPI int httpmessage_text_is_separator | ( | int | c | ) |
Indicates if the given character is a token separator.
c | Character to test |
is
a token separator int httpmessage_text_is_TEXT | ( | int | c | ) |
Indicates if the given character mathc the TEXT rule.
c | Character to test |
HMAPI int httpmessage_text_is_token_char | ( | int | c | ) |
Indicates if the given character is a valid token character.
c | Character to test |
is
in the token character set HMAPI int httpmessage_text_is_UPALPHA | ( | int | c | ) |
Indicates if the given character is an uppercase ASCII letter.
c | Character to test |
is
an uppercase letter. HMAPI int httpmessage_token_consume | ( | const char ** | token, |
size_t * | token_length, | ||
const char * | text, | ||
size_t | length | ||
) |
Read a RFC2616 token.
token | Output buffer |
token_length | Output buffer size |
text | Input text |
length | Input text length |