@@ -5,7 +5,7 @@ cpp-httplib
55
66A C++11 single-file header-only cross platform HTTP/HTTPS library.
77
8- It's extremely easy to setup. Just include ** httplib.h** file in your code!
8+ It's extremely easy to setup. Just include the ** httplib.h** file in your code!
99
1010NOTE: This is a 'blocking' HTTP library. If you are looking for a 'non-blocking' library, this is not the one that you want.
1111
@@ -163,7 +163,7 @@ The followings are built-in mappings:
163163| zip | application/zip |
164164| wasm | application/wasm |
165165
166- NOTE: These the static file server methods are not thread safe.
166+ NOTE: These static file server methods are not thread- safe.
167167
168168### Logging
169169
@@ -197,7 +197,7 @@ svr.Post("/multipart", [&](const auto& req, auto& res) {
197197});
198198```
199199
200- ### Receive content with Content receiver
200+ ### Receive content with a content receiver
201201
202202``` cpp
203203svr.Post(" /content_receiver" ,
@@ -224,7 +224,7 @@ svr.Post("/content_receiver",
224224 });
225225```
226226
227- ### Send content with Content provider
227+ ### Send content with the content provider
228228
229229```cpp
230230const size_t DATA_CHUNK_SIZE = 4;
@@ -281,7 +281,7 @@ svr.Get("/chunked", [&](const Request& req, Response& res) {
281281
282282### 'Expect: 100-continue' handler
283283
284- As default, the server sends ` 100 Continue ` response for ` Expect: 100-continue ` header.
284+ By default, the server sends a ` 100 Continue ` response for an ` Expect: 100-continue ` header.
285285
286286``` cpp
287287// Send a '417 Expectation Failed' response.
@@ -312,7 +312,7 @@ svr.set_write_timeout(5, 0); // 5 seconds
312312svr.set_idle_interval(0 , 100000 ); // 100 milliseconds
313313```
314314
315- ### Set maximum payload length for reading request body
315+ ### Set maximum payload length for reading a request body
316316
317317``` c++
318318svr.set_payload_max_length(1024 * 1024 * 512 ); // 512MB
@@ -497,7 +497,7 @@ cli.set_read_timeout(5, 0); // 5 seconds
497497cli.set_write_timeout(5 , 0 ); // 5 seconds
498498```
499499
500- ### Receive content with Content receiver
500+ ### Receive content with a content receiver
501501
502502``` c++
503503std::string body;
@@ -524,7 +524,7 @@ auto res = cli.Get(
524524 });
525525```
526526
527- ### Send content with Content provider
527+ ### Send content with a content provider
528528
529529``` cpp
530530std::string body = ...;
@@ -681,7 +681,7 @@ be to set up a signal handler for SIGPIPE to handle or ignore it yourself.
681681Compression
682682-----------
683683
684- The server can applie compression to the following MIME type contents:
684+ The server can apply compression to the following MIME type contents:
685685
686686 * all text types except text/event-stream
687687 * image/svg+xml
0 commit comments