HoneyryderChuck
1b29e062a0
added streaming plugin tests
2020-11-22 22:32:38 +00:00
HoneyryderChuck
a650e622ca
do not close the connection pool, if there's nothing to close
2020-11-22 22:32:38 +00:00
HoneyryderChuck
7e26c86dc1
really closing a response (won't buffer stuff anymore after being closed)
2020-11-22 15:55:44 +00:00
HoneyryderChuck
047875864b
closing the response when not carrying it forward
2020-11-22 15:55:44 +00:00
HoneyryderChuck
fecdd120f8
fixing h2c by not calling the #to_s from response, which now touches the pool in such conditions; we want to flush the buffer, so that's what we do
2020-11-22 15:55:43 +00:00
HoneyryderChuck
fa2fd818fe
added explicit response closing in tests
2020-11-22 15:55:43 +00:00
HoneyryderChuck
b5a971b03b
unnecessary var
2020-11-19 09:44:55 +00:00
HoneyryderChuck
c8663e52ee
do not show IDN message for normal ascii hostnames
2020-11-19 09:44:43 +00:00
HoneyryderChuck
777ab21050
making WRITE/READ more accurate by emitting them at the socket (UDP/TCP) level
2020-11-19 09:44:29 +00:00
HoneyryderChuck
24088decf3
fixing rubocop for remaining ruby versions
2020-11-07 16:55:23 +00:00
HoneyryderChuck
930025a067
newline
2020-11-07 16:43:56 +00:00
HoneyryderChuck
dc3f5ec01e
missing rubocop-performance for 2.3
2020-11-07 16:38:44 +00:00
HoneyryderChuck
3029a39249
disabled rescue alignment for 2.2
2020-11-07 16:25:46 +00:00
HoneyryderChuck
b0983daf2b
wrong 0.81 rubocop version
2020-11-07 16:24:25 +00:00
HoneyryderChuck
ea4ac5bfb9
fix constant usage
2020-11-07 16:17:46 +00:00
HoneyryderChuck
2d078de0a4
non-ascii: force utf8 encoding for all
2020-11-07 16:12:04 +00:00
HoneyryderChuck
81033abd2b
fixing match for proper rubocop version per ruby
2020-11-07 16:11:44 +00:00
HoneyryderChuck
bb1f448bb2
Merge branch 'urlescaping' into 'master'
...
Support for IDN domain names
See merge request honeyryderchuck/httpx!101
2020-11-07 16:04:53 +00:00
HoneyryderChuck
9a17e9451b
do not install brotli in jruby mode
2020-11-07 15:46:08 +00:00
HoneyryderChuck
b47b9de745
for unescaping of non ascii domain to binary (JRuby converts to UTF-8)
2020-11-07 15:46:08 +00:00
HoneyryderChuck
8f495f37d2
avoid using URI.escape directly
2020-11-07 15:36:21 +00:00
HoneyryderChuck
86f1db5bf0
disabling IDN support for ruby < 2.3
2020-11-07 15:36:21 +00:00
HoneyryderChuck
1b26977d16
updated rubocop to 1.0.0 on possible rubies, making the necessary changes
2020-11-07 15:36:21 +00:00
HoneyryderChuck
d900225f2e
added ascii url request tests
2020-11-07 01:41:05 +00:00
HoneyryderChuck
50b65200ed
using the new uri method at the appropriate places; adding some logging when resolving, to correctly identify when translation of IDN hostname happens
2020-11-07 01:41:05 +00:00
HoneyryderChuck
f9c1d7de44
extending URI to include non ascii hostname attribute; added own custom uri initialization function, which performs additional checks when needed
2020-11-07 01:41:05 +00:00
HoneyryderChuck
cbfb5c968e
moving domain_name module to core httpx, as the punycode IDN translation will be needed at this layer
2020-11-07 01:34:48 +00:00
HoneyryderChuck
e271c45582
fixing frozen string issues with punycode, and the String#unicode_normalize
2020-11-06 23:06:39 +00:00
HoneyryderChuck
fe0fc841c9
Merge branch 'breadcrumb' into 'master'
...
adding breadcrumbs to the jekyll layouts
See merge request honeyryderchuck/httpx!100
2020-11-06 17:26:35 +00:00
HoneyryderChuck
5f735cc6f5
Merge branch 'issue-50' into 'master'
...
rate limiter plugin
See merge request honeyryderchuck/httpx!99
2020-11-06 17:25:06 +00:00
HoneyryderChuck
b1e12179d7
Merge branch 'issue-98' into 'master'
...
Cookies: new module
See merge request honeyryderchuck/httpx!98
2020-11-06 17:24:14 +00:00
HoneyryderChuck
98b7d2fc04
using build matrix to test JIT in its own build step
2020-11-06 17:16:02 +00:00
HoneyryderChuck
76817bcc27
updated license with punycode license
2020-11-06 17:03:05 +00:00
HoneyryderChuck
a0247ef458
adding breadcrumbs to the jekyll layouts
2020-11-05 20:02:55 +00:00
HoneyryderChuck
62467ff5c5
persistent and retries plugin now work well together
...
When persistent and retries are loaded separately, the options won't be
just overwritten; instead, changes will be kept, and max_retries will be
the max value of what both plugins load (in case the user sets its own
option)
2020-11-05 16:20:16 +00:00
HoneyryderChuck
267f320fe0
updated signatures to use latest interface additions in rbs
2020-11-04 01:21:28 +00:00
HoneyryderChuck
048501e940
adding and integrating the new cookie modules for: store, jar, cookie, and domain name
2020-11-04 00:32:01 +00:00
HoneyryderChuck
959429b386
improved cookies testing, to test also the array-of-cookie-hashes case; does not accept a string anymore, as besides untested, it wasn't working properly
2020-11-03 16:33:11 +00:00
HoneyryderChuck
1b068aca21
removing http-cookie
2020-11-03 16:33:11 +00:00
HoneyryderChuck
01552757a0
supporting the retry-after header for redirections as well
2020-10-31 14:15:28 +00:00
HoneyryderChuck
1ad2e9cbcf
implemented the rate limiter plugin
2020-10-31 14:15:28 +00:00
HoneyryderChuck
6f2048952f
updating retry_after call test (2 arguments now)
2020-10-31 02:09:31 +00:00
HoneyryderChuck
1934e84bcd
added the rate limiter tests
2020-10-31 01:08:44 +00:00
HoneyryderChuck
e94b8407e5
do not wait to close connections which haven't been opened yet
2020-10-31 01:08:00 +00:00
HoneyryderChuck
2a49fbc78f
moved custom plugins used in tests to the support dir
2020-10-31 01:07:26 +00:00
HoneyryderChuck
f7af0511fa
fixed pagination in blog
2020-10-30 22:16:53 +00:00
HoneyryderChuck
8157814b66
Merge branch 'issue-97' into 'master'
...
Ruby 3
See merge request honeyryderchuck/httpx!97
2020-10-30 18:14:06 +00:00
HoneyryderChuck
10b588e948
typing blog post
2020-10-30 16:19:18 +00:00
HoneyryderChuck
091ab764c9
fixed the endless loop on exception for good
...
type check errors were sometimes causing the request loop to stall. This
was due to it not being handled in pool, and the respective requests not
being reaped. On exit, the session would try to close these connections,
but they weren't available anymore, causing it to happen. We were
already doing this for Interrupt, we're just extending it for all
non-StandarError exceptions
2020-10-30 16:19:18 +00:00
HoneyryderChuck
805096b721
signing the http1 parser as well
2020-10-30 16:19:18 +00:00