mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
Fix some typos:
fix #1255 Found via `codespell -q 3 -L uint,te,tim --skip="./test/extern/zlib*,./example/http/client/crawl*"`
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
Version 184:
|
Version 184:
|
||||||
|
|
||||||
* Remove extraneous function
|
* Remove extraneous function
|
||||||
|
* Fix some typos
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -1316,7 +1317,7 @@ Actions Required:
|
|||||||
take the logical NOT of the return value.
|
take the logical NOT of the return value.
|
||||||
|
|
||||||
* Modify instances of user-defined BodyReader and BodyWriter
|
* Modify instances of user-defined BodyReader and BodyWriter
|
||||||
types to perfrom two-phase initialization, as per the
|
types to perform two-phase initialization, as per the
|
||||||
updated documented type requirements.
|
updated documented type requirements.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
@@ -2410,7 +2411,7 @@ The message class hierarchy is refactored (breaking change):
|
|||||||
* Fix integer warnings in Windows builds
|
* Fix integer warnings in Windows builds
|
||||||
* Add 32 and 64 bit Windows build support
|
* Add 32 and 64 bit Windows build support
|
||||||
* Update README for build instructions and more
|
* Update README for build instructions and more
|
||||||
* Add repository and documention banners
|
* Add repository and documentation banners
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -441,7 +441,7 @@
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
<!-- Doxygen injects a <para></para> element around the listitem contents
|
<!-- Doxygen injects a <para></para> element around the listitem contents
|
||||||
so this rule extracts the contents and formats that directly to avoid
|
so this rule extracts the contents and formats that directly to avoid
|
||||||
introducing extra newlines from formating para -->
|
introducing extra newlines from formatting para -->
|
||||||
<xsl:apply-templates select="para/node()" mode="markup"/>
|
<xsl:apply-templates select="para/node()" mode="markup"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
In this example we will build a simple function to detect the presence
|
In this example we will build a simple function to detect the presence
|
||||||
of the SSL handshake given an input buffer sequence. Then we build on
|
of the SSL handshake given an input buffer sequence. Then we build on
|
||||||
the example by adding a synchronous stream algorithm. Finally, we
|
the example by adding a synchronous stream algorithm. Finally, we
|
||||||
implemement an asynchronous detection function using a composed operation.
|
implement an asynchronous detection function using a composed operation.
|
||||||
This SSL detector may be used to allow a server to accept both SSL/TLS and
|
This SSL detector may be used to allow a server to accept both SSL/TLS and
|
||||||
unencrypted connections at the same port.
|
unencrypted connections at the same port.
|
||||||
|
|
||||||
|
@@ -61,7 +61,7 @@ In this table:
|
|||||||
[`f.close(ec)`]
|
[`f.close(ec)`]
|
||||||
[]
|
[]
|
||||||
[
|
[
|
||||||
If `f` refers to an open file, thie function attempts to
|
If `f` refers to an open file, this function attempts to
|
||||||
close the file.
|
close the file.
|
||||||
Regardless of whether an error occurs or not, a subsequent
|
Regardless of whether an error occurs or not, a subsequent
|
||||||
call to `f.is_open()` will return `false`.
|
call to `f.is_open()` will return `false`.
|
||||||
|
@@ -248,7 +248,7 @@ template<
|
|||||||
class Handler>
|
class Handler>
|
||||||
class detect_ssl_op;
|
class detect_ssl_op;
|
||||||
|
|
||||||
// Here is the implementation of the asynchronous initation function
|
// Here is the implementation of the asynchronous initiation function
|
||||||
template<
|
template<
|
||||||
class AsyncReadStream,
|
class AsyncReadStream,
|
||||||
class DynamicBuffer,
|
class DynamicBuffer,
|
||||||
@@ -337,7 +337,7 @@ public:
|
|||||||
// The state for this operation is cheap to copy.
|
// The state for this operation is cheap to copy.
|
||||||
detect_ssl_op(detect_ssl_op const&) = default;
|
detect_ssl_op(detect_ssl_op const&) = default;
|
||||||
|
|
||||||
// The constructor just keeps references the callers varaibles.
|
// The constructor just keeps references the callers variables.
|
||||||
//
|
//
|
||||||
template<class DeducedHandler>
|
template<class DeducedHandler>
|
||||||
detect_ssl_op(
|
detect_ssl_op(
|
||||||
|
@@ -294,7 +294,7 @@ void do_server_head(
|
|||||||
"SyncStream requirements not met");
|
"SyncStream requirements not met");
|
||||||
static_assert(
|
static_assert(
|
||||||
boost::asio::is_dynamic_buffer<DynamicBuffer>::value,
|
boost::asio::is_dynamic_buffer<DynamicBuffer>::value,
|
||||||
"DynamicBuffer requirments not met");
|
"DynamicBuffer requirements not met");
|
||||||
|
|
||||||
// We deliver this payload for all GET requests
|
// We deliver this payload for all GET requests
|
||||||
static std::string const payload = "Hello, world!";
|
static std::string const payload = "Hello, world!";
|
||||||
@@ -388,7 +388,7 @@ do_head_request(
|
|||||||
"SyncStream requirements not met");
|
"SyncStream requirements not met");
|
||||||
static_assert(
|
static_assert(
|
||||||
boost::asio::is_dynamic_buffer<DynamicBuffer>::value,
|
boost::asio::is_dynamic_buffer<DynamicBuffer>::value,
|
||||||
"DynamicBuffer requirments not met");
|
"DynamicBuffer requirements not met");
|
||||||
|
|
||||||
// The interfaces we are using are low level and do not
|
// The interfaces we are using are low level and do not
|
||||||
// perform any checking of arguments; so we do it here.
|
// perform any checking of arguments; so we do it here.
|
||||||
@@ -505,7 +505,7 @@ relay(
|
|||||||
if(ec)
|
if(ec)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Apply the caller's header tranformation
|
// Apply the caller's header transformation
|
||||||
transform(p.get(), ec);
|
transform(p.get(), ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
return;
|
return;
|
||||||
|
@@ -119,7 +119,7 @@ consume(std::size_t size)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// rewind the offset, so the next call to prepare
|
// rewind the offset, so the next call to prepare
|
||||||
// can have a longer continguous segment. this helps
|
// can have a longer contiguous segment. this helps
|
||||||
// algorithms optimized for larger buffesr.
|
// algorithms optimized for larger buffesr.
|
||||||
in_off_ = 0;
|
in_off_ = 0;
|
||||||
in_size_ = 0;
|
in_size_ = 0;
|
||||||
|
@@ -110,7 +110,7 @@ public:
|
|||||||
|
|
||||||
/** Move bytes from the output sequence to the input sequence.
|
/** Move bytes from the output sequence to the input sequence.
|
||||||
|
|
||||||
@param size The nubmer of bytes to commit. If this is greater
|
@param size The number of bytes to commit. If this is greater
|
||||||
than the size of the output sequence, the entire output
|
than the size of the output sequence, the entire output
|
||||||
sequence is committed.
|
sequence is committed.
|
||||||
*/
|
*/
|
||||||
|
@@ -428,7 +428,7 @@ public:
|
|||||||
// This function is called when writing is complete.
|
// This function is called when writing is complete.
|
||||||
// It is an opportunity to perform any final actions
|
// It is an opportunity to perform any final actions
|
||||||
// which might fail, in order to return an error code.
|
// which might fail, in order to return an error code.
|
||||||
// Operations that might fail should not be attemped in
|
// Operations that might fail should not be attempted in
|
||||||
// destructors, since an exception thrown from there
|
// destructors, since an exception thrown from there
|
||||||
// would terminate the program.
|
// would terminate the program.
|
||||||
//
|
//
|
||||||
|
@@ -24,7 +24,7 @@ namespace http {
|
|||||||
|
|
||||||
This body uses @ref span as a memory-based container for
|
This body uses @ref span as a memory-based container for
|
||||||
holding message payloads. The container represents a
|
holding message payloads. The container represents a
|
||||||
non-owning reference to a continguous area of memory.
|
non-owning reference to a contiguous area of memory.
|
||||||
Messages using this body type may be serialized and
|
Messages using this body type may be serialized and
|
||||||
parsed.
|
parsed.
|
||||||
|
|
||||||
|
@@ -571,7 +571,7 @@ public:
|
|||||||
);
|
);
|
||||||
@endcode
|
@endcode
|
||||||
The implementation type-erases the callback which may require
|
The implementation type-erases the callback which may require
|
||||||
a dynamic allocation. To prevent the possiblity of a dynamic
|
a dynamic allocation. To prevent the possibility of a dynamic
|
||||||
allocation, use `std::ref` to wrap the callback.
|
allocation, use `std::ref` to wrap the callback.
|
||||||
If the read operation which receives the control frame is
|
If the read operation which receives the control frame is
|
||||||
an asynchronous operation, the callback will be invoked using
|
an asynchronous operation, the callback will be invoked using
|
||||||
|
@@ -43,7 +43,7 @@ public:
|
|||||||
|
|
||||||
The argument string is available to suites and
|
The argument string is available to suites and
|
||||||
allows for customization of the test. Each suite
|
allows for customization of the test. Each suite
|
||||||
defines its own syntax for the argumnet string.
|
defines its own syntax for the argument string.
|
||||||
The same argument is passed to all suites.
|
The same argument is passed to all suites.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@@ -7,6 +7,6 @@
|
|||||||
// Official repository: https://github.com/boostorg/beast
|
// Official repository: https://github.com/boostorg/beast
|
||||||
//
|
//
|
||||||
|
|
||||||
// Make sure symbols don't confict with ZLib
|
// Make sure symbols don't conflict with ZLib
|
||||||
#include "zlib-1.2.11/zlib.h"
|
#include "zlib-1.2.11/zlib.h"
|
||||||
#include <boost/beast/zlib.hpp>
|
#include <boost/beast/zlib.hpp>
|
||||||
|
Reference in New Issue
Block a user