11 Commits

Author SHA1 Message Date
HoneyryderChuck
5dee4497bf added support for connection: close, by:
* sending info on whether the session is in persistent mode to the
request;
* on parser, set keep-alive when persistent, at all times;
* when not persistent, set keep-alive on all requests til the last;
* on error recovery, when resetting to 1 request at a time, still keep
alive to all requests til the last;
* on next error recovery, set connection: close
2020-04-27 01:38:11 +01:00
HoneyryderChuck
926ad27011 expect plugin
this plugin sets all body requests to send the expect-100 header before
sending any payload, a la curl. It recovers from 417 as well.
2020-03-10 18:57:42 +00:00
HoneyryderChuck
9955c2ba80 testing log output, which allowed to remove a few more nocovs 2020-01-12 18:53:23 +00:00
HoneyryderChuck
066ff44762 moved timeout tests to the session, as they are not supposed to be differentiated in http/https terms 2019-12-31 01:57:00 +00:00
HoneyryderChuck
b616bea46c setting up functional tests for altsvc functionality 2019-12-21 11:40:43 +00:00
HoneyryderChuck
2da56ce9af fix: keep connection alive if HTTP/1.1 and there is connection-related
header;

this was wrongly closing connections for HTTP/1.1 connections which
didn't send a "Connection" header; according to spec, the default is
"Keep-Alive", contrary to HTTP/1.0
2019-05-15 14:45:06 +00:00
HoneyryderChuck
ce674ff4e2 Added multipart plugin, to handle multipart requests
This logic was extracted from the vanilla httpx build to a plugin to
make the gem "leaner", by removing "http_form_data" as a hard
dependency.

The multipart plugin still requires one to install it though, but if you
don't need to upload files, you don't have to install the gem anymore
2018-11-23 16:06:25 +00:00
HoneyryderChuck
0c46794c20 added retries test module, with max_retries already there 2018-06-06 17:50:58 +01:00
HoneyryderChuck
e36c6347bf rubocop indications 2018-03-23 14:48:10 +00:00
HoneyryderChuck
d29b198d68 added tests for connection refused behaviour 2018-03-23 14:45:03 +00:00
HoneyryderChuck
e207c57513 moved http1/http2 to http/https tests 2018-02-17 22:18:05 +00:00