Skip to content

Instantly share code, notes, and snippets.

@ashtum
ashtum / http_client_async.cpp
Created March 28, 2025 05:51
How to separate the reading of an HTTP message header and body into two operations.
//
// Copyright (c) 2016-2019 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)
//
// Official repository: https://github.com/boostorg/beast
//
//------------------------------------------------------------------------------
@ashtum
ashtum / asio_work_tracking_executor.cpp
Created July 7, 2023 06:25
Asio Work Tracking Executor
#include <boost/asio.hpp>
#include <fmt/format.h>
namespace boost
{
namespace asio
{
namespace detail
{