147 Commits

Author SHA1 Message Date
HoneyryderChuck
ddd27a3b36 added ssh proxy test 2018-12-28 14:21:25 +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
e666dfb85d Merge branch 'retries' into 'master'
Retries

Closes #17

See merge request honeyryderchuck/httpx!23
2018-06-11 17:56:46 +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
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
0c46794c20 added retries test module, with max_retries already there 2018-06-06 17:50:58 +01:00
HoneyryderChuck
4e5507f1db do not escape redirect location in tests (uris are escaped now) 2018-06-01 19:17:51 +01:00
HoneyryderChuck
0a92135c57 slipped through this... 2018-03-22 20:32:45 +00:00
HoneyryderChuck
4be12daa00 verify_status receives response and raises when not a proper response 2018-03-20 20:08:24 +00:00
HoneyryderChuck
12ae330d7f wrong engine 2018-01-28 23:37:32 +00:00
HoneyryderChuck
3c16999b53 do not do brotli tests on jruby 2018-01-28 23:20:25 +00:00
HoneyryderChuck
861d69c409 fixed all remaining rubocop fails 2018-01-28 23:01:33 +00:00
HoneyryderChuck
2b1ab8b6b6 rubocop auto-corrections according to some basic rules for now 2018-01-28 22:33:41 +00:00
HoneyryderChuck
7f7046b9ce added programatic proxy discovery by parsing the sslproxy and socks-proxy pages and fetching a sample suitable for each test 2018-01-14 20:39:42 +00:00
HoneyryderChuck
402a8ad2d4 added test for brotli request body compression 2018-01-14 20:35:32 +00:00
HoneyryderChuck
815a1177d6 added test 2018-01-13 22:04:54 +00:00
HoneyryderChuck
761ecb800d using the pushed response header from nghttp2.org to test whether asset was pushed 2018-01-13 21:41:30 +00:00
HoneyryderChuck
767637f15f switched name of proxy test and endpoints, again 2018-01-13 17:53:56 +00:00
HoneyryderChuck
b97405c551 added draft of push promise plugin 2018-01-13 17:53:29 +00:00
HoneyryderChuck
e762faedfa added h2c plugin 2018-01-08 22:30:50 +00:00
HoneyryderChuck
7f22b3f398 added a new socks5 proxy 2018-01-06 19:26:02 +00:00
HoneyryderChuck
ad1ff620b0 finally fixed the digest auth; the real issue was lack of a cookie, which apparently httpbin needs 2018-01-05 23:04:53 +00:00
HoneyryderChuck
7739ba81a4 Merge branch 'compression' 2018-01-04 23:17:07 +00:00
HoneyryderChuck
fbdd2391fd Merge branch 'cookies' 2018-01-04 23:14:45 +00:00
HoneyryderChuck
a033605a00 Merge branch 'follow_redirects' 2018-01-04 23:11:04 +00:00
HoneyryderChuck
c92a872257 Merge branch 'authentication' 2018-01-04 23:09:10 +00:00
HoneyryderChuck
fe79e73ffd again, proxies... 2018-01-04 22:56:31 +00:00
HoneyryderChuck
26dd09903c added socks 5 proxy which supports https 2018-01-04 22:46:06 +00:00
HoneyryderChuck
8ff7857dbf added support for socks5 2018-01-03 20:47:37 +00:00
HoneyryderChuck
a3c46525ff fixed socks4 corner cases, added support for socks4a 2018-01-03 18:41:06 +01:00
HoneyryderChuck
7e7e7d2dcd added support for socks proxy version 4 (following the curl way of declaring the version through uri (socks4://, socks4a://, etc
...)
2018-01-02 13:41:44 +02:00
HoneyryderChuck
2f67f0ad15 added tests for request body compression 2017-12-22 15:04:18 +02:00
HoneyryderChuck
b480249d0b added more compression tests, specially one to test the accept-encoding headers 2017-12-22 13:16:49 +02:00
HoneyryderChuck
b55911277a added compression plugin and tests (for now, failing) 2017-12-22 10:10:46 +02:00
HoneyryderChuck
128b5fc97e allowing to extend http2 channel for proxies; simplified proxy argument (uri instead of proxy_uri) 2017-12-22 09:18:12 +02:00
HoneyryderChuck
eac3955892 comment about the site for ssl proxies 2017-12-21 17:08:54 +02:00
HoneyryderChuck
af3a81b7a2 proxy: added multiple possible proxies to choose (for now it's a static list, but these might become unavailable, added dynamic fetching later) 2017-12-21 15:35:58 +02:00
HoneyryderChuck
48d8714225 added support for https proxy connect flow; removed the proxy server tests, as I found a list of public proxies, which are good enough to test around; added a bit more logging 2017-12-21 15:21:58 +02:00
HoneyryderChuck
6d7c3d73b6 testing on /get 2017-12-20 18:56:12 +02:00
HoneyryderChuck
9ee00921f8 added proxy tests; the tests use local nghttpx as proxy, which means this'll become a dependency 2017-12-20 17:26:57 +02:00
HoneyryderChuck
d044458031 added redirection functionality, along with capping the number of redirections (default: 3), after which it returns the last known response 2017-12-19 15:37:54 +02:00
HoneyryderChuck
460c1346d2 added test for following redirects, added plugin scaffold, test fails, of course 2017-12-19 15:37:53 +02:00
HoneyryderChuck
5ee94bbc98 added test which loads the cookies from the response and passes it to the next request; added the functionality also, along with the cookie jar 2017-12-19 12:59:03 +02:00
HoneyryderChuck
6ed620caff added the cookie plugin, with the first test: passing the cookie in the options 2017-12-18 18:09:30 +02:00
HoneyryderChuck
eae330088c loading basic and digest authentication as separate plugins 2017-12-18 16:03:05 +02:00
HoneyryderChuck
68faf1c4a1 added authentication plugin with tests (basic is working, digest is not) 2017-12-18 15:50:09 +02:00