diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3e5ed35 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2017 yhirose + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/README.md b/README.md index 737382d..c440cfa 100644 --- a/README.md +++ b/README.md @@ -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 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)