691 Commits

Author SHA1 Message Date
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
HoneyryderChuck
25b04e7c0e setting up the nghttp2 docker image to use from registry instead of building one every single time. this should speed up the test suite 2018-05-10 16:49:55 +01:00
HoneyryderChuck
7e54ee00e5 this change fixes http event stream requests, which are not understood by HTTP::Parser, and do not trigger the message complete event; it doesn't call the dispatch inside the callback, instead relying on an existing mechanism to do it outside the callback, thereby avoiding the bug which was the reason for the previous comment 2018-04-09 12:23:03 +01:00
HoneyryderChuck
e9d8f4fc8c added missing release notes 2018-04-06 11:35:56 +01:00
HoneyryderChuck
6c1ebd57a8 bumped to 0.0.5 v0.0.5 2018-04-03 20:34:13 +01:00
HoneyryderChuck
70b2c17543 Merge branch 'pipeline-timeout' into 'master'
Pipeline timeout

See merge request honeyryderchuck/httpx!19
2018-04-03 19:03:03 +00:00
HoneyryderChuck
1065607837 fixed patch for CI 2.5 to count with 2.5.1 as well 2018-04-03 19:47:40 +01:00
HoneyryderChuck
c032afa060 rubocop suggestion 2018-04-03 19:01:25 +01:00
HoneyryderChuck
48b02731fb allow SSL channels to being properly closed and reoppened 2018-04-03 19:01:11 +01:00
HoneyryderChuck
dfaa66fb6f http1: reset parser instead of closing (it was removing the channel from the selector); this was making http1 pipelining fail 2018-04-03 19:00:11 +01:00
HoneyryderChuck
347b960de8 propagating channel errors to parsers, allowing to reset 2018-04-03 18:59:35 +01:00
HoneyryderChuck
693a7ceb7a not using retries... (to be addressed in a plugin) 2018-04-03 18:39:01 +01:00
HoneyryderChuck
4db4b073d3 renamed channel error emission; emit timeout errors in connection pool, not in client 2018-04-03 09:53:57 +01:00