Skip to content

Releases: yhirose/cpp-httplib

Fix SSL read timeout errors on Windows

23 May 00:17
089b9da
Compare
Choose a tag to compare
Fix virtual call in ClientImpl::~ClientImpl() (#942)

* Fix virtual call in ClientImpl::~ClientImpl()

This fixes a warning in clang tidy:

> Call to virtual method 'ClientImpl::shutdown_ssl' during
> destruction bypasses virtual dispatch

ClientImpl::~ClientImpl() calls lock_socket_and_shutdown_and_close()
that itself calls shutdown_ssl().  However, shutdown_ssl() is virtual
and C++ does not perform virtual dispatch in destructors, which results
in the wrong overload being called.

This change adds a non-virtual shutdown_ssl_impl() function that is
called from ~SSLClient().  We also inline sock_socket_and_shutdown_and_close()
and removes the virtual call in ~ClientImpl().

* Inline and remove lock_socket_and_shutdown_and_close()

The function only has one caller.

Fix timeout problems and Remove redundant call to close_socket

23 Apr 21:16
7c60e69
Compare
Choose a tag to compare
v0.8.8

Remove redunant call to close_socket (#911)

Added `set_address_family`

15 Apr 13:53
Compare
Choose a tag to compare
v0.8.7

Code format

Fix content reader problem with auto redirection

06 Apr 01:04
Compare
Choose a tag to compare
v0.8.6

Additional changes for #889

Fix problem with Get with Parameters

16 Mar 23:44
Compare
Choose a tag to compare

Fix response line parsing problem without reason phrase

12 Feb 19:45
Compare
Choose a tag to compare

Add exception handler support

02 Feb 04:02
0542fdb
Compare
Choose a tag to compare
Add exception handler (#845)

* Add exception handler

* revert content reader changes

* Add test for and fix exception handler

* Fix warning in test

* Readd exception test, improve readme note, don't rethrow errors, remove exception handler response

Minor API breaking change for the pre request handler

23 Jan 18:39
Compare
Choose a tag to compare

It now takes HandleResponse as a return value.

Fix problem with a 204 request

17 Jan 17:51
8d9a477
Compare
Choose a tag to compare
No content check (#823)

* No content check

* unit test for no content

* fixing merge conflict break

* oops during manual merge conflict

Pre/Post routing handlers support

12 Jan 15:16
Compare
Choose a tag to compare
v0.8.0

Updated the simple example