NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   http_parser

Definition at line 28 of file parser.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/41]

BOOST_AUTO_TEST_CASE ( is_token_char  )

◆ BOOST_AUTO_TEST_CASE() [2/41]

BOOST_AUTO_TEST_CASE ( extract_token  )

Definition at line 107 of file parser.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [3/41]

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() [4/41]

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() [5/41]

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() [6/41]

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() [7/41]

BOOST_AUTO_TEST_CASE ( extract_parameters  )

Definition at line 211 of file parser.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [8/41]

BOOST_AUTO_TEST_CASE ( strip_lws  )

Definition at line 359 of file parser.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [9/41]

BOOST_AUTO_TEST_CASE ( case_insensitive_headers  )

◆ BOOST_AUTO_TEST_CASE() [10/41]

BOOST_AUTO_TEST_CASE ( case_insensitive_headers_overwrite  )

◆ BOOST_AUTO_TEST_CASE() [11/41]

BOOST_AUTO_TEST_CASE ( blank_consume  )

◆ BOOST_AUTO_TEST_CASE() [12/41]

BOOST_AUTO_TEST_CASE ( blank_request  )

◆ BOOST_AUTO_TEST_CASE() [13/41]

BOOST_AUTO_TEST_CASE ( bad_request_no_host  )

◆ BOOST_AUTO_TEST_CASE() [14/41]

◆ BOOST_AUTO_TEST_CASE() [15/41]

◆ BOOST_AUTO_TEST_CASE() [16/41]

◆ BOOST_AUTO_TEST_CASE() [17/41]

◆ BOOST_AUTO_TEST_CASE() [18/41]

◆ BOOST_AUTO_TEST_CASE() [19/41]

◆ BOOST_AUTO_TEST_CASE() [20/41]

◆ BOOST_AUTO_TEST_CASE() [21/41]

◆ BOOST_AUTO_TEST_CASE() [22/41]

◆ BOOST_AUTO_TEST_CASE() [23/41]

◆ BOOST_AUTO_TEST_CASE() [24/41]

◆ BOOST_AUTO_TEST_CASE() [25/41]

BOOST_AUTO_TEST_CASE ( bad_method  )

Definition at line 748 of file parser.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [26/41]

BOOST_AUTO_TEST_CASE ( bad_header_name  )

Definition at line 764 of file parser.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [27/41]

◆ BOOST_AUTO_TEST_CASE() [28/41]

◆ BOOST_AUTO_TEST_CASE() [29/41]

◆ BOOST_AUTO_TEST_CASE() [30/41]

◆ BOOST_AUTO_TEST_CASE() [31/41]

◆ BOOST_AUTO_TEST_CASE() [32/41]

◆ BOOST_AUTO_TEST_CASE() [33/41]

◆ BOOST_AUTO_TEST_CASE() [34/41]

◆ BOOST_AUTO_TEST_CASE() [35/41]

◆ BOOST_AUTO_TEST_CASE() [36/41]

◆ BOOST_AUTO_TEST_CASE() [37/41]

◆ BOOST_AUTO_TEST_CASE() [38/41]

◆ BOOST_AUTO_TEST_CASE() [39/41]

◆ BOOST_AUTO_TEST_CASE() [40/41]

◆ BOOST_AUTO_TEST_CASE() [41/41]