forked from boostorg/beast
A new class `serializer` is introduced to permit incremental serialization of HTTP messages. Existing free functions are re-implemented in terms of this new class. * The BodyReader concept is refined to support a greater variety of strategies for providing buffers representing the body to the serialization algorithms. * Added buffer_body, a new model of Body which allows the caller to provide a series of owned buffers using their own serialization loop. * Added empty_body, a model of Body which is for serialization only, to represent HTTP messages with no content body. * Removed overloads of write and async_write which send only the HTTP header. * Removed public interfaces for performing low-level chunk encoding.
28 lines
791 B
C++
28 lines
791 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_parser.hpp>
|
|
#include <beast/http/buffer_body.hpp>
|
|
#include <beast/http/dynamic_body.hpp>
|
|
#include <beast/http/empty_body.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/rfc7230.hpp>
|
|
#include <beast/http/string_body.hpp>
|
|
#include <beast/http/write.hpp>
|
|
|
|
#endif
|