753 Commits

Author SHA1 Message Date
HoneyryderChuck
e567cfe4cb updated rubocop 2018-06-29 18:07:14 +01:00
HoneyryderChuck
75e1012070 fixed rubocop.yml namespace issue 2018-06-29 17:49:34 +01:00
HoneyryderChuck
d49158908f allow proxy channels to properly reset when trapped in proxy connection protocols 2018-06-29 17:43:38 +01:00
HoneyryderChuck
7112ca3938 proxy parsers do not respond to handle_error 2018-06-29 17:27:10 +01:00
HoneyryderChuck
aee3a6c5b1 passing EOF errors when IO is closed (which will be ignored if all requests have been served) 2018-06-29 17:26:39 +01:00
HoneyryderChuck
0284b0478e socks: allow for them to call the on_error callback routine and fail early when experiencing proxy-specific errors 2018-06-29 17:24:23 +01:00
HoneyryderChuck
8b5eb7c477 proxy: allow to recover from IO errors on proxy connection, so that the next one can come along 2018-06-29 17:23:03 +01:00
HoneyryderChuck
8dfbca8fd1 do not log caller on error response (too much verbosity) 2018-06-29 17:22:00 +01:00
HoneyryderChuck
274e2fc095 protected against errrors when connections are aborted from the peer side, which can happen on select time 2018-06-29 17:20:45 +01:00
HoneyryderChuck
edff464368 docker:dind has issues with passing envvars around, better be conservative with docker-compose 2018-06-21 13:38:20 +01:00
HoneyryderChuck
9cbb091618 turn min coverage temporarily off 2018-06-21 13:31:08 +01:00
HoneyryderChuck
6cd49a3435 when establishing ssl session, do post connection check for SNI 2018-06-12 14:29:41 +01:00
HoneyryderChuck
17e54cb4f4 make gems install in global dir and not locally, so I can run the CI suite and not have my gems destroyed 2018-06-12 14:29:14 +01:00
HoneyryderChuck
e45b5a246c Merge branch 'master' of gitlab.com:honeyryderchuck/httpx 2018-06-11 19:25:55 +01:00
HoneyryderChuck
caadfd4024 Merge branch 'multi_proxy' into 'master'
Multi proxy

Closes #20

See merge request honeyryderchuck/httpx!22
2018-06-11 18:25:31 +00:00
HoneyryderChuck
81d7a1714f do not build documentation if tests fail 2018-06-11 19:16:44 +01:00
HoneyryderChuck
b2cc1c8d4a enabled parallel testing; turn off certificate verification on CI mode 2018-06-11 19:16:22 +01:00
HoneyryderChuck
e666dfb85d Merge branch 'retries' into 'master'
Retries

Closes #17

See merge request honeyryderchuck/httpx!23
2018-06-11 17:56:46 +00:00
HoneyryderChuck
33d1cfcc62 redefining #send for the proxy channel (it just enqueues) 2018-06-11 18:33:25 +01:00
HoneyryderChuck
f271ec349b remove noise :open state messages from socks proxy plugin 2018-06-11 18:32:43 +01:00
HoneyryderChuck
38facaece7 rubocoping 2018-06-11 18:27:57 +01:00
HoneyryderChuck
ce4a30cc57 fixed the proxy array setup 2018-06-11 17:57:23 +01:00
HoneyryderChuck
530ee781a3 Merge branch 'multi_proxy' of gitlab.com:honeyryderchuck/httpx into multi_proxy 2018-06-11 17:56:05 +01:00
HoneyryderChuck
daa843504c Merge branch 'unixsock' into 'master'
Unixsock

Closes #24

See merge request honeyryderchuck/httpx!20
2018-06-07 11:34:27 +00:00
HoneyryderChuck
a0e692cc32 Merge branch 'refuse-insecure' into 'master'
added follow_insecure_redirects, which allows users to opt in on https-to-http redirects

Closes #18

See merge request honeyryderchuck/httpx!24
2018-06-07 11:29:12 +00:00
HoneyryderChuck
0a846f05f3 rubocopping 2018-06-07 12:16:37 +01:00
HoneyryderChuck
c74b86b435 do not test result of real requests 2018-06-06 20:59:52 +01:00
HoneyryderChuck
e1feac17eb fixed error response init 2018-06-06 17:51:43 +01:00
HoneyryderChuck
0be7efaab2 added follow_insecure_redirects, which allows users to opt in on https-to-http redirects (shut down by default) 2018-06-06 17:51:21 +01:00
HoneyryderChuck
3d305285d5 allow only idempotent requests to be retried 2018-06-06 17:50:58 +01:00
HoneyryderChuck
694549eb95 added the retries plugin, which hops on fetch_response and resends a request while it's retryable 2018-06-06 17:50:58 +01:00
HoneyryderChuck
0c46794c20 added retries test module, with max_retries already there 2018-06-06 17:50:58 +01:00
HoneyryderChuck
c521f226fc remove commented code 2018-06-06 17:50:30 +01:00
HoneyryderChuck
a54fab5998 remove traces of the retries parameter, which wasn't being used anyway 2018-06-06 17:48:44 +01:00
HoneyryderChuck
28a7721774 Merge branch 'patch-1' into 'master'
Correct page title in the RDocs

See merge request honeyryderchuck/httpx!21
2018-06-06 15:20:00 +00:00
Janko Marohnić
3b3f8a70a5 Correct page title in the RDocs 2018-06-05 21:22:03 +00:00
HoneyryderChuck
453f0c8c63 ignoring URI escape deprecation (not the same result) 2018-06-04 10:44:12 +01:00
HoneyryderChuck
1b68700f54 ignoring URI escape deprecation (not the same result) 2018-06-04 10:43:48 +01:00
HoneyryderChuck
63fdd8c83a added retry-on-next-proxy when errors happen which happened during proxy connection or protocol establishment 2018-06-04 09:59:28 +01:00
HoneyryderChuck
68861bc336 proxy: allow to pass a list of possible proxies to :uri parameter; taking the first one from the list 2018-06-04 09:59:28 +01:00
HoneyryderChuck
9040c837d4 using CGI.escape due to rubocop 2018-06-04 09:46:08 +01:00
HoneyryderChuck
42cdd04017 added retry-on-next-proxy when errors happen which happened during proxy connection or protocol establishment 2018-06-01 19:18:16 +01:00
HoneyryderChuck
0ca0971e27 proxy: allow to pass a list of possible proxies to :uri parameter; taking the first one from the list 2018-06-01 19:18:16 +01:00
HoneyryderChuck
4e5507f1db do not escape redirect location in tests (uris are escaped now) 2018-06-01 19:17:51 +01:00
HoneyryderChuck
19503156e1 encoding URLs properly by replacing unsafe characters 2018-06-01 17:29:30 +01:00
HoneyryderChuck
b7e875a761 rubocoped this 2018-05-28 10:00:54 +01:00
HoneyryderChuck
994c1b853e moved TCP and SSL definitions under /io, where possible future transports will go to 2018-05-25 16:05:03 +01:00
HoneyryderChuck
6c49581dc2 added unix io type (so now one can open unix sockets), added a basic test to show that connectivity is possible 2018-05-25 15:57:46 +01:00
HoneyryderChuck
54d4c613d1 allow transport to be used to get the proper IO type; changing signature of both TCP and SSL 2018-05-25 15:56:51 +01:00
HoneyryderChuck
5b4c465c72 allow to pass transport type (tcp, ssl, unix)and a transport options 2018-05-25 15:55:41 +01:00