Skip to content

Commit 3e4567b

Browse files
committed
Updated Repl.it examples
1 parent db075d8 commit 3e4567b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NOTE: This is a 'blocking' HTTP library. If you are looking for a 'non-blocking'
1212
Simple examples
1313
---------------
1414

15-
### [Server](https://repl.it/@yhirose/cpp-httplib-server#main.cpp):
15+
#### Server
1616

1717
```c++
1818
httplib::Server svr;
@@ -24,7 +24,7 @@ svr.Get("/hi", [](const httplib::Request &, httplib::Response &res) {
2424
svr.listen("0.0.0.0", 8080);
2525
```
2626

27-
### [Client](https://repl.it/@yhirose/cpp-httplib-client#main.cpp):
27+
#### Client
2828

2929
```c++
3030
httplib::Client cli("http://cpp-httplib-server.yhirose.repl.co");
@@ -35,6 +35,11 @@ res->status; // 200
3535
res->body; // "Hello World!"
3636
```
3737
38+
### Try out the examples on Repl.it!
39+
40+
1. Run server at https://repl.it/@yhirose/cpp-httplib-server
41+
2. Run client at https://repl.it/@yhirose/cpp-httplib-client
42+
3843
Server
3944
------
4045

0 commit comments

Comments
 (0)