Skip to content

Releases: yhirose/cpp-httplib

Content Provider Resource Releaser interface change

11 Jun 18:49

Choose a tag to compare

It's a breaking change from v0.8.x. The content provider resource releaser now takes bool success parameter to see if the all the content have been sent to the client successfully.

Fix SSL read timeout errors on Windows

23 May 00:17
089b9da

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

Choose a tag to compare

v0.8.8

Remove redunant call to close_socket (#911)

Added `set_address_family`

15 Apr 13:53

Choose a tag to compare

v0.8.7

Code format

Fix content reader problem with auto redirection

06 Apr 01:04

Choose a tag to compare

v0.8.6

Additional changes for #889

Fix problem with Get with Parameters

16 Mar 23:44

Choose a tag to compare

Fix response line parsing problem without reason phrase

12 Feb 19:45

Choose a tag to compare

Add exception handler support

02 Feb 04:02
0542fdb

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

Choose a tag to compare

It now takes HandleResponse as a return value.

Fix problem with a 204 request

17 Jan 17:51
8d9a477

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