1416 Commits

Author SHA1 Message Date
HoneyryderChuck
0c307c82c3 removing the cookies test from options 2017-12-19 13:05:54 +02:00
HoneyryderChuck
a179fe7aa0 http-cookie is now a dev dep 2017-12-19 13:05:34 +02:00
HoneyryderChuck
48b6faa2c3 options: removing the cookies stuff by default there 2017-12-19 13:05:21 +02:00
HoneyryderChuck
3c72a20d46 removing usage of ** params, as this forces typecast to hash, and one loses the options silently keeping the object passed in init, which is a big part of the plugins 2017-12-19 13:05:07 +02:00
HoneyryderChuck
a5a48c8d83 fixed header initialization (specifically in the case when it is initialized with two set-cookie incoming fields) 2017-12-19 13:00:27 +02:00
HoneyryderChuck
aec527be33 added debug_level option, which can make logs more verbose 2017-12-19 12:59:52 +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
1c507545c1 cookies might be nil (in fact, the default options won't be the same when expanding the options, think about this for a while 2017-12-19 11:48:51 +02:00
HoneyryderChuck
7d9f6f2466 Get first, head later 2017-12-19 11:48:22 +02:00
HoneyryderChuck
5eeb2eee6a fixing the leakage of altered resource classes to the main default options 2017-12-19 11:48:10 +02:00
HoneyryderChuck
af25aae6d1 removing the cookies test from options 2017-12-19 11:47:29 +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
06667b355f http-cookie is now a dev dep 2017-12-18 18:08:48 +02:00
HoneyryderChuck
3e0bbd8f81 options: removing the cookies stuff by default there 2017-12-18 18:08:38 +02:00
HoneyryderChuck
741bea2b24 removing usage of ** params, as this forces typecast to hash, and one loses the options silently keeping the object passed in init, which is a big part of the plugins 2017-12-18 18:08:16 +02:00
HoneyryderChuck
95508ac4d5 allow to build requests without sending them 2017-12-18 16:05:20 +02:00
HoneyryderChuck
d9f2632a67 parser is empty when there are no requests as well 2017-12-18 16:04:53 +02:00
HoneyryderChuck
88b2c9370c added plugin to top-level chainable; added plural version, to load multiple plugins 2017-12-18 16:04:39 +02:00
HoneyryderChuck
eae330088c loading basic and digest authentication as separate plugins 2017-12-18 16:03:05 +02:00
HoneyryderChuck
2270060130 allow to build requests without sending them 2017-12-18 15:50:09 +02:00
HoneyryderChuck
f2944eba14 parser is empty when there are no requests as well 2017-12-18 15:50:09 +02:00
HoneyryderChuck
3f7525d4a7 added plugin to top-level chainable; added plural version, to load multiple plugins 2017-12-18 15:50:09 +02:00
HoneyryderChuck
68faf1c4a1 added authentication plugin with tests (basic is working, digest is not) 2017-12-18 15:50:09 +02:00
HoneyryderChuck
eccea7c443 improve HTTP/1 log messages 2017-12-18 13:43:09 +02:00
HoneyryderChuck
37f97005fb Merge branch 'bufferz' into 'master'
Bufferz

Closes #2

See merge request honeyryderchuck/httpx!3
2017-12-15 10:56:48 +00:00
HoneyryderChuck
f99893839d improved inspection of IO objects 2017-12-15 10:56:14 +00:00
HoneyryderChuck
da8bccb254 with_body: moved assertions to helper methods 2017-12-15 08:45:21 +00:00
HoneyryderChuck
9ea8e6f309 removed keep alive explicit timeout (it's just part of the operation flow) 2017-12-14 11:10:21 +00:00
HoneyryderChuck
8293350d26 jruby fix: http_parser (still) calls the header callback twice for chunked bodies, work around that 2017-12-14 01:21:44 +00:00
HoneyryderChuck
9673825673 jruby support: do not multi-assign in condition (it will not compile) 2017-12-14 01:20:56 +00:00
HoneyryderChuck
900bffb61a added timeout to tests 2017-12-14 01:20:29 +00:00
HoneyryderChuck
703620bc19 added support for minitest run in parallel 2017-12-14 01:20:12 +00:00
HoneyryderChuck
51cdf95aad added helper assertion helpers 2017-12-14 01:19:47 +00:00
HoneyryderChuck
808c351d72 added support for expect 100-continue requests (Fixes #2) 2017-12-13 23:33:16 +00:00
HoneyryderChuck
368b207c50 http2: disable push on settings 2017-12-13 22:45:26 +00:00
HoneyryderChuck
059908c43a http2: better logging, prefix with stream id 2017-12-13 22:45:11 +00:00
HoneyryderChuck
71363d6794 more accurate method for calculating #empty? 2017-12-13 22:44:45 +00:00
HoneyryderChuck
d9830dab01 inspect if @io is expected (this can shadow real errors otherwise 2017-12-13 01:24:27 +00:00
HoneyryderChuck
157d7e1fed fixed 2017-12-13 01:24:04 +00:00
HoneyryderChuck
89298be707 allow debug option, which can be passed the logger (must respond to #<<); using it in the debug logger for http1 payload and http2 frames 2017-12-13 01:23:38 +00:00
HoneyryderChuck
1230f9e0fa simplified the Connection#response method 2017-12-13 01:04:47 +00:00
HoneyryderChuck
4a884d31f5 bit of documentation, bit of delegation 2017-12-13 01:04:31 +00:00
HoneyryderChuck
36480b8fbf moved the matching logic of channel to its class, where it belongs 2017-12-13 00:59:43 +00:00
HoneyryderChuck
8006f5c8bc added body as a possible extension point of the plugin API 2017-12-13 00:32:47 +00:00
HoneyryderChuck
7b3f78e5ad removing the responses list from http1, as they're already stored in the request 2017-12-13 00:10:17 +00:00
HoneyryderChuck
e19d9a0dd2 registering http1 and http2 handlers directly in the channel 2017-12-13 00:09:54 +00:00
HoneyryderChuck
117acfb6f7 dealt with the timeouts: removed the deadcode for connects, as they no longer proxy it; instead, the selector commands whether the timeout will be triggered, if there are no ready fds; the global handler can also trigger a separate timeout, if this is asked for after the interval was starved, signaling incompletion 2017-12-12 23:58:42 +00:00
HoneyryderChuck
6cfe34155a client simplifications 2017-12-12 23:55:41 +00:00
HoneyryderChuck
5f88fd5ab7 channel: call #consume after draining; some requests might be inflight and its buffering may be incomplete, this should get them going 2017-12-12 21:32:16 +00:00
HoneyryderChuck
db7463d8fb http2: fixed response body buffering, as there was a confusion between chunk and next_chunk 2017-12-12 21:31:36 +00:00