mirror of
https://github.com/boostorg/beast.git
synced 2026-07-05 07:50:50 +02:00
f47b66179e
fix #123 fix #154 fix #265 This completely replaces the HTTP parser used to read and parse incoming messages. The new version is faster than the old one, and written in fewer lines. A summary of changes: * parse and async_parse renamed to read and async_read * basic_parser is optimized for linear buffers, use flat_streambuf for the best performance with these functions: - http::read - http::read_some - http::async_read - http::async_read_some * The overloads of read() and async_read() which take just a header have been removed, since they would throw away important parse metadata. * The derived class callbacks for basic_parser have been streamlined. All strings passed to callbacks are presented in their entirety, instead of being provided in pieces. These changes allow use-cases that were previously difficult or impossible, such as: - Efficient relaying - Late body type commitment - Expect: 100-continue handling
104 lines
2.5 KiB
Plaintext
104 lines
2.5 KiB
Plaintext
#
|
|
# Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
|
|
import os ;
|
|
|
|
compile config.cpp : : ;
|
|
compile core.cpp : : ;
|
|
compile http.cpp : : ;
|
|
compile version.cpp : : ;
|
|
compile websocket.cpp : : ;
|
|
compile zlib.cpp : : ;
|
|
|
|
unit-test core-tests :
|
|
../extras/beast/unit_test/main.cpp
|
|
core/async_completion.cpp
|
|
core/bind_handler.cpp
|
|
core/buffer_cat.cpp
|
|
core/buffer_concepts.cpp
|
|
core/buffers_adapter.cpp
|
|
core/clamp.cpp
|
|
core/consuming_buffers.cpp
|
|
core/dynabuf_readstream.cpp
|
|
core/error.cpp
|
|
core/flat_streambuf.cpp
|
|
core/handler_alloc.cpp
|
|
core/handler_concepts.cpp
|
|
core/handler_ptr.cpp
|
|
core/placeholders.cpp
|
|
core/prepare_buffer.cpp
|
|
core/prepare_buffers.cpp
|
|
core/static_streambuf.cpp
|
|
core/static_string.cpp
|
|
core/stream_concepts.cpp
|
|
core/streambuf.cpp
|
|
core/to_string.cpp
|
|
core/write_dynabuf.cpp
|
|
core/base64.cpp
|
|
core/empty_base_optimization.cpp
|
|
core/get_lowest_layer.cpp
|
|
core/is_call_possible.cpp
|
|
core/sha1.cpp
|
|
;
|
|
|
|
unit-test http-tests :
|
|
../extras/beast/unit_test/main.cpp
|
|
http/basic_dynabuf_body.cpp
|
|
http/basic_fields.cpp
|
|
http/basic_parser.cpp
|
|
http/concepts.cpp
|
|
http/design.cpp
|
|
http/error.cpp
|
|
http/fields.cpp
|
|
http/header_parser.cpp
|
|
http/message.cpp
|
|
http/message_parser.cpp
|
|
http/read.cpp
|
|
http/reason.cpp
|
|
http/rfc7230.cpp
|
|
http/streambuf_body.cpp
|
|
http/string_body.cpp
|
|
http/write.cpp
|
|
http/chunk_encode.cpp
|
|
;
|
|
|
|
unit-test bench-tests :
|
|
../extras/beast/unit_test/main.cpp
|
|
http/nodejs_parser.cpp
|
|
http/parser_bench.cpp
|
|
;
|
|
|
|
unit-test websocket-tests :
|
|
../extras/beast/unit_test/main.cpp
|
|
websocket/error.cpp
|
|
websocket/option.cpp
|
|
websocket/rfc6455.cpp
|
|
websocket/stream.cpp
|
|
websocket/teardown.cpp
|
|
websocket/frame.cpp
|
|
websocket/mask.cpp
|
|
websocket/utf8_checker.cpp
|
|
;
|
|
|
|
unit-test zlib-tests :
|
|
../extras/beast/unit_test/main.cpp
|
|
zlib/zlib-1.2.8/adler32.c
|
|
zlib/zlib-1.2.8/compress.c
|
|
zlib/zlib-1.2.8/crc32.c
|
|
zlib/zlib-1.2.8/deflate.c
|
|
zlib/zlib-1.2.8/infback.c
|
|
zlib/zlib-1.2.8/inffast.c
|
|
zlib/zlib-1.2.8/inflate.c
|
|
zlib/zlib-1.2.8/inftrees.c
|
|
zlib/zlib-1.2.8/trees.c
|
|
zlib/zlib-1.2.8/uncompr.c
|
|
zlib/zlib-1.2.8/zutil.c
|
|
zlib/deflate_stream.cpp
|
|
zlib/error.cpp
|
|
zlib/inflate_stream.cpp
|
|
;
|