1
0
mirror of synced 2025-07-29 11:01:13 +03:00

Changed license to MIT

This commit is contained in:
yhirose
2017-12-20 17:27:36 -05:00
parent a83dcefe86
commit ca7b942196
2 changed files with 28 additions and 5 deletions

View File

@ -3,8 +3,6 @@ cpp-httplib
A C++11 header-only HTTP library.
[The Boost Software License 1.0](http://www.boost.org/LICENSE_1_0.txt)
It's extremely easy to setup. Just include **httplib.h** file in your code!
Inspired by [Sinatra](http://www.sinatrarb.com/) and [express](https://github.com/visionmedia/express).
@ -139,10 +137,10 @@ std::shared_ptr<httplib::Response> res =
This feature was contributed by [underscorediscovery](https://github.com/yhirose/cpp-httplib/pull/23).
### Range (HTTP/1.1)
### Range
```cpp
httplib::Client cli("httpbin.org", 80, httplib::HttpVersion::v1_1);
httplib::Client cli("httpbin.org", 80);
// 'Range: bytes=1-10'
httplib::Headers headers = { httplib::make_range_header(1, 10) };
@ -165,4 +163,7 @@ SSLServer svr("./cert.pem", "./key.pem");
SSLClient cli("localhost", 8080);
```
Copyright (c) 2017 Yuji Hirose. All rights reserved.
License
-------
MIT license (© 2017 Yuji Hirose)