691 Commits

Author SHA1 Message Date
HoneyryderChuck
56156e91fa bumping to 0.0.4 v0.0.4 2018-03-29 15:47:03 +01:00
HoneyryderChuck
4bd509dce9 rubocop 2018-03-29 15:46:30 +01:00
HoneyryderChuck
6dc5179b46 passing a full response to the HTTPError, thereby exposing the whole response object 2018-03-29 15:34:03 +01:00
HoneyryderChuck
3db315a771 making sure that HTTP/1 connection: close reopens a socket if there are still requests in the buffer 2018-03-29 15:22:08 +01:00
HoneyryderChuck
9f0547a24b Merge branch 'colored_output' into 'master'
Colored output

Closes #19

See merge request honeyryderchuck/httpx!18
2018-03-28 10:34:10 +00:00
HoneyryderChuck
0da9b26f26 disable colors if output is not a tty 2018-03-28 11:00:12 +01:00
HoneyryderChuck
e36a91b6cc added color as a parameter to logs, using ANSI 2018-03-28 10:57:35 +01:00
HoneyryderChuck
25fd0bbf75 changed the log API to use kwargs 2018-03-28 10:51:15 +01:00
HoneyryderChuck
9626f17daf connect: guard against ENETUNREACH and openssl handshake errors 2018-03-28 09:51:33 +01:00
HoneyryderChuck
b47eb263fd allow to wrap client in many layers 2018-03-26 17:39:08 +01:00
HoneyryderChuck
79c7d72f2a bumped rubocop to 0.54 2018-03-26 17:16:41 +01:00
HoneyryderChuck
0e0e7b1ead updated readme formatting 2018-03-26 16:19:54 +01:00
HoneyryderChuck
75ffa8ad4f setting version to 0.0.3 v0.0.3 2018-03-26 15:42:32 +01:00
HoneyryderChuck
505d4d0324 adding a #wrap method, to keep connections open 2018-03-26 15:41:09 +01:00
HoneyryderChuck
438deb488a do not dispatch inside body callback (it resets the parser, while the parser is still parsing...) 2018-03-26 15:32:20 +01:00
HoneyryderChuck
bc95ed0c80 Merge branch 'raise_for_status' into 'master'
Raise for status

See merge request honeyryderchuck/httpx!17
2018-03-26 13:51:08 +00:00
HoneyryderChuck
d02e328077 hackernews script: running in separate thread now to make backtracing easier 2018-03-26 14:37:58 +01:00
HoneyryderChuck
ec17795dbe get example now raises for status 2018-03-26 14:29:40 +01:00
HoneyryderChuck
44f9b9c31a skip connection refused test in jruby (to be debugged) 2018-03-26 12:15:41 +01:00
HoneyryderChuck
f5c8508f44 guarding connection initialization against EADDRNOTAVAIL 2018-03-26 11:55:12 +01:00
HoneyryderChuck
4c9b16740f ssl: allowing non-blocking connects, finally 2018-03-26 11:46:52 +01:00
HoneyryderChuck
7b8d0d89f7 show the actual error coming 2018-03-23 15:00:07 +00:00
HoneyryderChuck
e36c6347bf rubocop indications 2018-03-23 14:48:10 +00:00
HoneyryderChuck
2813ff9efb log error as well in the error response 2018-03-23 14:45:20 +00:00
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