[/
    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
]

[section:quick_start 快速查看]
[/block'''<?dbhtml stop-chunking?>''']

这些完整示例程序旨在让读者快速了解该库的特点。它们的源码和编译脚本位于 [path_link example example] 目录中。



[section:http_client 简单HTTP客户端 __示例__]

使用 HTTP 向网站发送 GET 请求，然后打印返回结果：

文件：[path_link example/http/client/sync/http_client_sync.cpp http_sync_client.cpp]

[example_http_client]

[endsect]



[section:websocket_client 简单 WebSocket 客户端 __示例__]

建立 WebSocket 连接，发送消息并接收回复：

文件：[path_link example/websocket/client/sync/websocket_client_sync.cpp websocket_sync_client.cpp]

[example_websocket_client]

[endsect]

[include 1a_bishop_fox.qbk]

[include 1b_autobahn.qbk]

[endsect]
