NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
parser.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/http/request.hpp>
#include <websocketpp/http/response.hpp>
Include dependency graph for parser.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   http_parser
 

Functions

 BOOST_AUTO_TEST_CASE (is_token_char)
 
 BOOST_AUTO_TEST_CASE (extract_token)
 
 BOOST_AUTO_TEST_CASE (extract_quoted_string)
 
 BOOST_AUTO_TEST_CASE (extract_all_lws)
 
 BOOST_AUTO_TEST_CASE (extract_attributes_blank)
 
 BOOST_AUTO_TEST_CASE (extract_attributes_simple)
 
 BOOST_AUTO_TEST_CASE (extract_parameters)
 
 BOOST_AUTO_TEST_CASE (strip_lws)
 
 BOOST_AUTO_TEST_CASE (case_insensitive_headers)
 
 BOOST_AUTO_TEST_CASE (case_insensitive_headers_overwrite)
 
 BOOST_AUTO_TEST_CASE (blank_consume)
 
 BOOST_AUTO_TEST_CASE (blank_request)
 
 BOOST_AUTO_TEST_CASE (bad_request_no_host)
 
 BOOST_AUTO_TEST_CASE (basic_request)
 
 BOOST_AUTO_TEST_CASE (basic_request_with_body)
 
 BOOST_AUTO_TEST_CASE (basic_request_with_body_split)
 
 BOOST_AUTO_TEST_CASE (trailing_body_characters)
 
 BOOST_AUTO_TEST_CASE (trailing_body_characters_beyond_max_lenth)
 
 BOOST_AUTO_TEST_CASE (basic_split1)
 
 BOOST_AUTO_TEST_CASE (basic_split2)
 
 BOOST_AUTO_TEST_CASE (max_header_len)
 
 BOOST_AUTO_TEST_CASE (max_header_len_split)
 
 BOOST_AUTO_TEST_CASE (max_body_len)
 
 BOOST_AUTO_TEST_CASE (firefox_full_request)
 
 BOOST_AUTO_TEST_CASE (bad_method)
 
 BOOST_AUTO_TEST_CASE (bad_header_name)
 
 BOOST_AUTO_TEST_CASE (old_http_version)
 
 BOOST_AUTO_TEST_CASE (new_http_version1)
 
 BOOST_AUTO_TEST_CASE (new_http_version2)
 
 BOOST_AUTO_TEST_CASE (header_whitespace1)
 
 BOOST_AUTO_TEST_CASE (header_whitespace2)
 
 BOOST_AUTO_TEST_CASE (header_aggregation)
 
 BOOST_AUTO_TEST_CASE (wikipedia_example_response)
 
 BOOST_AUTO_TEST_CASE (wikipedia_example_response_trailing)
 
 BOOST_AUTO_TEST_CASE (wikipedia_example_response_trailing_large)
 
 BOOST_AUTO_TEST_CASE (response_with_non_standard_lws)
 
 BOOST_AUTO_TEST_CASE (plain_http_response)
 
 BOOST_AUTO_TEST_CASE (parse_istream)
 
 BOOST_AUTO_TEST_CASE (write_request_basic)
 
 BOOST_AUTO_TEST_CASE (write_request_with_header)
 
 BOOST_AUTO_TEST_CASE (write_request_with_body)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   http_parser

Definition at line 28 of file parser.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( is_token_char  )
BOOST_AUTO_TEST_CASE ( extract_token  )

Definition at line 107 of file parser.cpp.

References websocketpp::http::parser::extract_token().

BOOST_AUTO_TEST_CASE ( extract_quoted_string  )

Definition at line 126 of file parser.cpp.

References websocketpp::http::parser::extract_quoted_string().

BOOST_AUTO_TEST_CASE ( extract_all_lws  )

Definition at line 158 of file parser.cpp.

References websocketpp::http::parser::extract_all_lws().

BOOST_AUTO_TEST_CASE ( extract_attributes_blank  )

Definition at line 187 of file parser.cpp.

References websocketpp::http::parser::extract_attributes().

BOOST_AUTO_TEST_CASE ( extract_attributes_simple  )

Definition at line 198 of file parser.cpp.

References websocketpp::http::parser::extract_attributes().

BOOST_AUTO_TEST_CASE ( extract_parameters  )

Definition at line 211 of file parser.cpp.

References websocketpp::http::parser::extract_parameters().

BOOST_AUTO_TEST_CASE ( strip_lws  )

Definition at line 359 of file parser.cpp.

References websocketpp::http::parser::strip_lws().

BOOST_AUTO_TEST_CASE ( case_insensitive_headers  )
BOOST_AUTO_TEST_CASE ( case_insensitive_headers_overwrite  )
BOOST_AUTO_TEST_CASE ( blank_consume  )
BOOST_AUTO_TEST_CASE ( blank_request  )
BOOST_AUTO_TEST_CASE ( bad_request_no_host  )
BOOST_AUTO_TEST_CASE ( bad_method  )

Definition at line 736 of file parser.cpp.

References websocketpp::http::parser::request::consume().

BOOST_AUTO_TEST_CASE ( bad_header_name  )

Definition at line 752 of file parser.cpp.

References websocketpp::http::parser::request::consume().