forked from boostorg/beast
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
30 lines
860 B
C++
30 lines
860 B
C++
//
|
|
// 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)
|
|
//
|
|
|
|
#ifndef BEAST_HTTP_HPP
|
|
#define BEAST_HTTP_HPP
|
|
|
|
#include <beast/config.hpp>
|
|
|
|
#include <beast/http/basic_fields.hpp>
|
|
#include <beast/http/basic_parser.hpp>
|
|
#include <beast/http/chunk_encode.hpp>
|
|
#include <beast/http/error.hpp>
|
|
#include <beast/http/fields.hpp>
|
|
#include <beast/http/header_parser.hpp>
|
|
#include <beast/http/message.hpp>
|
|
#include <beast/http/message_parser.hpp>
|
|
#include <beast/http/read.hpp>
|
|
#include <beast/http/read.hpp>
|
|
#include <beast/http/reason.hpp>
|
|
#include <beast/http/rfc7230.hpp>
|
|
#include <beast/http/streambuf_body.hpp>
|
|
#include <beast/http/string_body.hpp>
|
|
#include <beast/http/write.hpp>
|
|
|
|
#endif
|