Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.13k
stars
92
forks
source link
Should debug_printer be a part of restinio::easy_parser? #117
RESTinio's easy_parser used in restinio::http_field_parsers doesn't contain debugging facilities (and it's an open question can such facilities be added). So the debugging of PEG parsers is not an easy task.
RESTinio's easy_parser used in
restinio::http_field_parsers
doesn't contain debugging facilities (and it's an open question can such facilities be added). So the debugging of PEG parsers is not an easy task.A simple helper debug_print was very useful in the implementation of parser for Host HTTP-field. Its source code can be found here: https://github.com/Stiffstream/restinio/blob/3a3e4bfe6b3fea0d5790531b7ee560d3bc6774fb/dev/restinio/helpers/http_field_parsers/host.hpp#L212-L227
Maybe debug_print should become a part of easy_parser?