Sebastien Blanchet
8191fd8e6c
Add optional private key password to SSLServer ctor ( #1205 )
2022-02-27 14:16:15 -05:00
Andrea Pappacoda
894fcc8e02
test: add missing "_Online" suffix ( #1183 )
...
This test fails reproducibly in a Debian build chroot, and they generally don't have internet access
2022-01-30 12:34:52 -05:00
Gregor Jasny
87e03dd1ce
Report connection timeout as separate event ( #1171 )
2022-01-26 17:32:40 -05:00
yhirose
ee8371f753
Added 'PostLarge' unit test for #1169
2022-01-22 09:52:27 -05:00
yhirose
11e02e901c
Fixed unit test
2021-12-31 16:10:57 -05:00
yhirose
65a8f4cf44
Added hosted_at
. ( Resolve #1113 )
2021-12-31 15:35:52 -05:00
yhirose
865b0e4c03
Resolve #1145
2021-12-26 07:53:06 -05:00
yhirose
20056f6cda
Update test.cc
2021-12-19 14:19:10 -05:00
yhirose
793ae9855e
Fix #1041 ( #1132 )
...
* Fix #1041
* Fixed problem with is_socket_alive
* Adjust the way to check if the sockt is still alive.
* Revert "Adjust the way to check if the sockt is still alive."
This reverts commit 6c673b21e5439087e3cdc9c3dd39eba2d99928c8.
* Adjust is_socket_alive according to the code review
2021-12-16 21:06:17 -05:00
Andrea Pappacoda
824e7682e4
test: add missing _Online suffixes ( #1110 )
2021-11-27 09:54:05 -05:00
yhirose
226388ae27
Resolve #1100
2021-11-23 10:47:30 -05:00
Yuji Hirose
301faa074c
Added test case for #1065
2021-10-29 07:29:23 -04:00
zhenyolka
4f8fcdbaf7
Allow to specify server IP address ( #1067 )
...
* Allow to specify server IP address
* Reimplement in set_hostname_addr_map
* Add tests for set_hostname_addr_map
* Fix tests after implement set_hostname_addr_map
* SpecifyServerIPAddressTest.RealHostname typo
2021-10-16 15:05:55 -04:00
CarlosLeeGit
b80aa7fee3
support custom ssl ctx configuration for SSLServer ( #1073 )
2021-10-15 07:13:16 -04:00
Zizheng Tai
e1efa337a2
Make Client move-constructible ( #1051 )
2021-09-16 14:05:42 -04:00
Andrea Pappacoda
549cdf2f7d
test: avoid infinite loop when IPV6 is unsupported ( #1054 )
2021-09-16 14:04:43 -04:00
yhirose
c202aa9ce9
Read buffer support. ( Fix #1023 ) ( #1046 )
2021-09-12 00:26:02 -04:00
yhirose
461acb02f5
Comment out SlowPostFail test for now
2021-09-10 22:37:31 -04:00
yhirose
1cc6930363
Append '_Online' suffix to Unit test names that access external servers
2021-08-23 13:02:19 -04:00
Joel Rosdahl
1b3b098329
Avoid hardcoded ports in RedirectToDifferentPort.Redirect test ( #1012 )
...
The RedirectToDifferentPort.Redirect test assumes that port 8080 and
8081 are available on localhost. They aren’t on my system so the test
fails. Improve this by binding to available ports instead of hardcoded
ones.
2021-07-30 10:04:02 -04:00
yhirose
ccbddd8842
Allow LargeRandomData
test only on Windows
2021-07-22 22:17:31 -04:00
yosh-matsuda
879dd261c2
Fix gzip compression/decompression over 4 GiB data size ( #1002 )
...
* Fix gzip compression/decompression over 4 GiB data size
* Add gzip test for large random data
2021-07-22 22:07:40 -04:00
xxrl
52f5eb5980
[Fix] ca_cert_path/ce_cert_store lose ( #1004 )
...
When redirect from http to https, user setting for ca_cert will lose
issue: #1003
2021-07-22 21:41:41 -04:00
Gregor Jasny
ea2f69a0d7
Add httplib::Error to std::string function ( #999 )
...
Fixes : #978
2021-07-19 21:17:44 -04:00
Gregor Jasny
9f2064a8ed
Fix remaining test warnings ( #1001 )
...
* Use portable way to encode ESC
'\e' is a GNU extension
* Use length specifier for size_t
2021-07-19 21:17:18 -04:00
yhirose
c1eee3012e
Fix #998
2021-07-17 17:18:56 -04:00
Gregor Jasny
6b08babbd2
Use googletest 1.11.0 ( #1000 )
...
* Update googletest to version 1.11.0
* Fix test warnings
2021-07-17 13:21:03 -04:00
yhirose
215b81342e
Added a test case for #996
2021-07-15 08:24:06 -04:00
yhirose
06bfa7e08b
Fix #979
2021-07-14 22:49:49 -04:00
yhirose
5a43bb8149
Implemented #946 in a different way
2021-06-02 13:45:47 -04:00
yhirose
77a77f6d2d
Added set_default_headers on Server
2021-05-23 19:06:28 -04:00
Alex Hornung
e00ad37580
Add option to bypass URL encode of path ( #934 )
2021-05-15 08:48:25 -04:00
Alessio Pollero
2a70c45697
Fix client.cc code, since res.error() without operator overloading… ( #921 )
...
* Fix client.cc code, since res.error() without operator overloading causing error in Xcode
* Add unit test to check new error to string with operator overloading
* Add inline as requested in code review comment
2021-05-01 13:29:23 -04:00
yhirose
33e94891ee
Updated test.cc
2021-04-22 08:04:46 -04:00
yhirose
73e0729f63
Change sink.write()
to return boolean
2021-04-22 07:14:08 -04:00
yhirose
21c529229c
Fixed timeout issues
2021-04-22 07:14:08 -04:00
yhirose
63643e6386
Code format
2021-04-13 20:52:49 -04:00
yhirose
6cc2edce99
Added set_address_family
2021-04-13 20:49:52 -04:00
yhirose
9d3365df54
Fix #889
2021-04-05 11:40:53 -04:00
yhirose
6ff84d34d1
Another simpler implementation of #890 ( #891 )
2021-04-02 18:25:04 -04:00
yhirose
b845425cd0
Fix #878
2021-03-16 19:42:44 -04:00
yhirose
cf475bcb50
Fix #860
2021-02-12 12:21:43 -05:00
yhirose
bc80d7c789
Fixed ClientStop test problem
2021-02-06 20:12:30 -05:00
yhirose
b7566f6961
Resolve #852
2021-02-02 22:09:35 -05:00
Nikolas
0542fdb8e4
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
2021-01-28 17:19:11 -05:00
yhirose
68d1281759
Resolve #839
2021-01-23 13:33:27 -05:00
yhirose
0308d60cb2
Resolve #831 ( #835 )
2021-01-23 12:23:06 -05:00
Eric Lee
8d9a477edb
No content check ( #823 )
...
* No content check
* unit test for no content
* fixing merge conflict break
* oops during manual merge conflict
2021-01-13 17:51:40 -05:00
yhirose
f008fe4539
Added middleware support ( #816 )
2021-01-07 18:40:52 -05:00
yhirose
ddf41d29ef
Added const *char
and size_t
interface
2021-01-06 22:39:58 -05:00