httpmessage  0.4.0
HTTP message parsing library
Functions
grammar.h File Reference

RFC 2616 general grammar utility. More...

#include "httpmessage/preprocessor.h"
#include <unistd.h>
Include dependency graph for grammar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

Detailed Description

RFC 2616 general grammar utility.