yhirose
34d392cf3d
Merge branch 'fix' of github.com:HerrCai0907/cpp-httplib into HerrCai0907-fix
2024-04-11 22:22:58 -04:00
yhirose
825c3fbbb1
Removed excess usage of std::move
2024-04-11 21:21:27 -04:00
Rusty Conover
00bdf73ec6
fix: increase default receive buffer to 16kb ( #1814 )
...
Since TLS packets have a maximum size of 16kb it makes
sense to fully accommodate them on reads.
Co-authored-by: Rusty Conover <rusty@Juno.local>
2024-04-09 16:59:07 -04:00
Jiwoo Park
f44ab9b3da
Fix range parser when parsing too many ranges ( #1812 )
...
* Implement range parser without std::regex
* Add test cases for invalid ranges
2024-04-07 10:06:16 -04:00
yhirose
548dfff0ae
Fix #1793
2024-03-09 22:26:17 -05:00
Congcong Cai
4dd2f3d03d
fix ambiguous for HandlerWithResponse and Handler in set_error_handler
...
using lambda expression as Handler in set_error_handler will cause ambiguous.
Template forwarding can forward HandlerWithResponse to the correct overloading function
2024-03-07 19:07:39 +08:00
Jiwoo Park
c5a0673c93
Use final keyword for devirtualization ( #1779 )
2024-02-17 09:17:15 -05:00
Sergey
ad40bd6a00
Implement file mapping for UWP apps ( #1775 )
...
Fixes #1773 .
2024-02-08 22:59:34 -05:00
yhirose
5c00bbf36b
Release v0.15.3
2024-02-05 22:12:43 -05:00
yhirose
9d6f5372a3
Fix #1772
2024-02-05 22:11:53 -05:00
yhirose
80c0cc445e
Release v0.15.2
2024-02-02 23:29:30 -05:00
yhirose
762024b890
Fix #1768
2024-02-02 23:17:32 -05:00
yhirose
82a90a2325
Update year
2024-01-29 08:53:01 -05:00
yhirose
b7cac4f4b8
Release v0.15.1
2024-01-29 07:40:56 -05:00
yhirose
e323374d2a
Fix #1766
2024-01-28 17:43:51 -05:00
Jiwoo Park
ffc294d37e
Reduce object copy ( #1767 )
2024-01-28 08:18:29 -05:00
yhirose
fceada9ef4
Changed to return 416 for a request with an invalid range
2024-01-28 08:13:19 -05:00
yhirose
5f0f73fad9
Reduce duplicate computation for ranges
2024-01-27 19:07:52 -05:00
yhirose
530d6ee098
Release v0.15.0
2024-01-27 17:39:58 -05:00
yhirose
420c9759c6
Fix #1694
2024-01-27 16:13:54 -05:00
yhirose
2ce7c22218
Fix #1747
2024-01-27 12:56:39 -05:00
Wander Nauta
4ef9ed80cd
Treat paths with embedded NUL bytes as invalid ( #1765 )
...
Fixes #1763 .
2024-01-27 08:22:00 -05:00
Jiwoo Park
44b3fe6277
Support move semantics for Response::set_content() ( #1764 )
2024-01-27 07:53:19 -05:00
Ilya Andreev
449801990f
Add a getter for a bearer token from a request ( #1755 )
...
* Add a getter for a bearer token from a request
* Replace a method for bearer token getter with a free function
2024-01-15 08:57:22 -05:00
Jean-Francois Simoneau
af2928d316
Fix select() return code for fd >= 1024 ( #1757 )
2024-01-15 08:27:31 -05:00
Matthias Bilger
65218ce222
added missing include of exception ( #1752 )
2023-12-31 18:59:43 -05:00
Adam Gajda
55e99c4030
Fix -Wold-style-cast warning ( #1751 )
2023-12-31 18:43:31 -05:00
TheOnlyJoey
b63d50671d
Fixes Windows std::max macro problems ( #1750 )
2023-12-30 11:37:58 -05:00
yhirose
eba980846b
Fix #1628 (OpenSSL 1.1.1 End of Life on September 11, 2023) ( #1745 )
2023-12-24 08:20:58 -05:00
vmaffione
374d058de7
ThreadPool: optional limit for jobs queue ( #1741 )
...
For very busy servers, the internal jobs queue where accepted
sockets are enqueued can grow without limit.
This is a problem for two reasons:
- queueing too much work causes the server to respond with huge latency,
resulting in repetead timeouts on the clients; it is definitely
better to reject the connection early, so that the client
receives the backpressure signal as soon as the queue is
becoming too large
- the jobs list can eventually cause an out of memory condition
2023-12-24 08:20:22 -05:00
yhirose
ad9f6423e2
Fix #1744
2023-12-23 11:45:08 -05:00
yhirose
cbca63f091
Release v0.14.3
2023-12-21 19:55:25 -05:00
yhirose
b4748a226c
Fix #1738
2023-12-21 13:33:52 -05:00
Ilya Andreev
c86f69a105
Use StatusCode in httplib code ( #1742 )
2023-12-19 22:17:24 -05:00
Ilya Andreev
d39fda0657
Add StatusCode enum ( #1739 )
...
* Add StatusCode enum
* Remove changes on RFC 9110
* Add number suffixes to StatusCode constants
* Remove docs for StatusCode constants
2023-12-19 17:57:30 -05:00
Ilya Andreev
37f8dc4382
Change some of status messages based on RFC 9110 ( #1740 )
2023-12-19 09:22:58 -05:00
yhirose
8aa38aecaf
Fix #1665
2023-12-17 22:03:02 -05:00
yhirose
f1dec77f46
Code format
2023-12-17 22:00:33 -05:00
yhirose
cddaedaff8
Fix #1736
2023-12-15 19:29:54 -05:00
davidalo
e426a38c3e
Fix: Query parameter including query delimiter ('?') not being parsed properly ( #1713 )
...
* Fix: Query parameter including query delimiter ('?') not being parsed properly
* Add details::split function with and without m argument to allow split parameters with/without counter
* Revert changes in SplitTest.ParseQueryString
2023-12-07 14:28:41 -05:00
yhirose
f14accb7b6
Release v0.14.2
2023-12-04 22:31:12 -05:00
yhirose
c5c704cb3b
Fix #1724
2023-12-04 21:34:55 -05:00
Jean-Francois Simoneau
115a786581
Fix readability warnings ( #1722 )
...
* Fix readability warnings
Did not fix readbility-qualified-auto, will do a separate pull request
* Revert changes where meaning is lost
* Revert some style changes
2023-11-24 09:55:04 -05:00
Jean-Francois Simoneau
5ef4cfd263
Fix bugprone warnings ( #1721 )
2023-11-20 22:14:00 -05:00
Jean-Francois Simoneau
03fecb2f78
Fix modernize warnings ( #1720 )
2023-11-20 22:10:04 -05:00
Jean-Francois Simoneau
7fc8682a0a
Fix performance-noexcept-move-constructor ( #1715 )
2023-11-20 13:13:59 -05:00
Jiwoo Park
1d14e051a5
Remove cryptui on Windows ( #1710 )
2023-11-11 21:26:57 -05:00
Jiwoo Park
1d6b22b5f0
Fix C6001 ( #1701 )
2023-10-30 07:13:40 -04:00
yhirose
1a49076b5b
Removed unnecessary exception
2023-10-29 19:36:40 -04:00
yhirose
e2813d9d4d
Code cleanup. (Removed unnecessary .c_str()
calls)
2023-10-23 16:43:12 -04:00