• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/
2    Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
3
4    Distributed under the Boost Software License, Version 1.0. (See accompanying
5    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7    Official repository: https://github.com/boostorg/beast
8]
9
10[section:quick_start Quick Look]
11[/block'''<?dbhtml stop-chunking?>''']
12
13These complete programs are intended to quickly impress upon readers
14the flavor of the library. Source code and build scripts for them are
15located in the [path_link example example] directory.
16
17
18
19[section:http_client Simple HTTP Client __example__]
20
21Use HTTP to make a GET request to a website and print the response:
22
23File: [path_link example/http/client/sync/http_client_sync.cpp http_sync_client.cpp]
24
25[example_http_client]
26
27[endsect]
28
29
30
31[section:websocket_client Simple WebSocket Client __example__]
32
33Establish a WebSocket connection, send a message and receive the reply:
34
35File: [path_link example/websocket/client/sync/websocket_client_sync.cpp websocket_sync_client.cpp]
36
37[example_websocket_client]
38
39[endsect]
40
41[include 1a_bishop_fox.qbk]
42
43[include 1b_autobahn.qbk]
44
45[endsect]
46