567 Commits

Author SHA1 Message Date
HoneyryderChuck
d29b198d68 added tests for connection refused behaviour 2018-03-23 14:45:03 +00:00
HoneyryderChuck
e16ea30b14 added support for raising connection refused error responses 2018-03-23 14:42:56 +00:00
HoneyryderChuck
67eb755a3b added Response#raise_for_status, which raises an exception if the http code is an error code; it also duck-types the error response, which will raise its exception 2018-03-23 10:53:16 +00:00
HoneyryderChuck
0b4c6fc8c3 ErrorResponse now receives a full exception instead of only the message 2018-03-23 10:52:30 +00:00
HoneyryderChuck
de693867bb do not match against closing channels (must open a new one for that) 2018-03-22 20:33:04 +00:00
HoneyryderChuck
0a92135c57 slipped through this... 2018-03-22 20:32:45 +00:00
HoneyryderChuck
ef7cac8bfe make error responses loggable 2018-03-22 20:28:54 +00:00
HoneyryderChuck
4be12daa00 verify_status receives response and raises when not a proper response 2018-03-20 20:08:24 +00:00
HoneyryderChuck
d78230899b close parser when there's a parser 2018-03-18 12:23:12 +00:00
HoneyryderChuck
fb31512c29 Merge branch 'master' of https://gitlab.com/honeyryderchuck/httpx v0.0.2 2018-03-18 01:25:46 +00:00
HoneyryderChuck
d8760505bc bumped to 0.0.2 2018-03-18 01:25:42 +00:00
HoneyryderChuck
68ccbd0be0 Merge branch 'proper-close' into 'master'
Proper close

See merge request honeyryderchuck/httpx!16
2018-03-18 00:55:52 +00:00
HoneyryderChuck
f411294042 matching channel against all IP addresses for the hostname; prefering
Resolv.getaddress, despite IPv4 preference (there is some inconsistency
with IPv6 addresses using TCPSocket.getaddress)
2018-03-18 00:18:43 +00:00
HoneyryderChuck
02435252e5 Update README.md 2018-03-14 17:18:04 +00:00
HoneyryderChuck
278c5a4e26 do not test all rubies every time 2018-03-11 01:03:13 +00:00
HoneyryderChuck
0df3803f84 missing complete callback 2018-03-11 01:02:56 +00:00
HoneyryderChuck
05e4f103b3 fixing rubocop (sort of) 2018-03-11 01:02:37 +00:00
HoneyryderChuck
9ff6db30c6 not making too much stuff up when closing a channel 2018-03-11 00:43:41 +00:00
HoneyryderChuck
0763242cce do not throw stuff, parser on close must trigger transition 2018-03-11 00:43:13 +00:00
HoneyryderChuck
7db7fad7a9 parsers now emitting close, not complete 2018-03-11 00:41:43 +00:00
HoneyryderChuck
2557eae5f7 connection close: basing on channels to know whether to execute next tick 2018-03-11 00:41:16 +00:00
HoneyryderChuck
d98da33dbe added compression (if we're benchmarking against net-http, we might as well use it) 2018-03-01 00:11:35 +00:00
HoneyryderChuck
c774dc8303 fixing hackernews scripts 2018-02-28 22:22:14 +00:00
HoneyryderChuck
0982cafbf9 hackernews front page scraper 2018-02-28 22:20:17 +00:00
HoneyryderChuck
ae61580a15 hackernews links assembler 2018-02-28 22:19:53 +00:00
HoneyryderChuck
86ae0d4356 response filtering is done somewhere else 2018-02-28 22:19:22 +00:00
HoneyryderChuck
7417199f0d adding hostname (it is needed for SNI, and it was being omitted because of this) 2018-02-28 22:18:58 +00:00
HoneyryderChuck
f05a4bdba8 added hackernews first page scraper 2018-02-28 18:46:14 +00:00
HoneyryderChuck
aac720128f faster bundle install 2018-02-25 17:34:31 +00:00
HoneyryderChuck
fb267b3218 bumped to 0.0.1 v0.0.1 2018-02-24 22:26:15 +00:00
HoneyryderChuck
eca474c1dc added gem tasks 2018-02-24 22:24:06 +00:00
HoneyryderChuck
d54332a3a8 removed certificate_authority (not needed for quite some time already) 2018-02-24 22:21:52 +00:00
HoneyryderChuck
0c609e6fd9 cleaned up example 2018-02-24 22:13:55 +00:00
HoneyryderChuck
410ea0a743 rearranged readme, putting code first, added resources section 2018-02-24 22:12:06 +00:00
HoneyryderChuck
9c3e65ed60 www: added link to wiki, added a code snippet 2018-02-24 22:11:41 +00:00
HoneyryderChuck
cea5feefdd only build docs for latest ruby 2018-02-24 20:18:06 +00:00
HoneyryderChuck
16c06f0de6 delegating #replace 2018-02-24 16:26:37 +00:00
HoneyryderChuck
0dcb351347 Merge branch 'master' of https://gitlab.com/honeyryderchuck/httpx 2018-02-24 16:02:29 +00:00
HoneyryderChuck
a991a4f3c4 Merge branch 'session-close' into 'master'
Session close

See merge request honeyryderchuck/httpx!15
2018-02-24 16:02:38 +00:00
HoneyryderChuck
bacae0d73a latest is only alpine 2018-02-24 16:01:39 +00:00
HoneyryderChuck
30c6d7ea21 added gzip and brotli asset generation to jekyll config 2018-02-24 13:55:32 +00:00
HoneyryderChuck
ce5cf74e11 jruby image: declare debug option, so coverage doesn't break 2018-02-24 13:36:25 +00:00
HoneyryderChuck
522b1ffb57 make CI always use latest bundler 2018-02-24 13:21:22 +00:00
HoneyryderChuck
33423f9774 h2c: fixed a bug, when the upgrade request already had the final response, and it was trying to repeat the request (identify the case and exit early) 2018-02-24 13:20:53 +00:00
HoneyryderChuck
cfe712ca01 bumped to jruby 9.1.16 on tests, thereby hopefully triggering the first fully-successful build 2018-02-24 00:12:41 +00:00
HoneyryderChuck
132883d4ff ignore www/public 2018-02-24 00:11:38 +00:00
HoneyryderChuck
ab69d4aa39 channels are resettable (meaning, they transition to closed right away), which is important for when there is an error (like timeout or network) 2018-02-24 00:11:10 +00:00
HoneyryderChuck
8e8240f5fc closing a channel triggers transition to :closing; it is now async; the #call will now act differently (if on closing state, it will drain the write buffer and transition to closed); this way one gets to support http2 goaway frame 2018-02-24 00:09:44 +00:00
HoneyryderChuck
1cbec1b959 calling close on parse triggers the channel close; this will eventually trigger its callback (close is not immediate) 2018-02-24 00:06:01 +00:00
HoneyryderChuck
1f6862f3f2 changed the callback for the parser (not closing, but completing), closing to be handled at a later time 2018-02-24 00:02:20 +00:00