HoneyryderChuck
d23be82b7e
bumping versio to 0.16.0
v0.16.0
2021-08-04 00:16:28 +01:00
HoneyryderChuck
14bdb5327f
Merge branch 'issue-143' into 'master'
...
make Response#to_s non-destructive, and keep the body around
Closes #143
See merge request honeyryderchuck/httpx!153
2021-08-02 18:15:54 +00:00
HoneyryderChuck
c8719435c7
updating jruby image
2021-08-01 14:43:23 +01:00
HoneyryderChuck
953f2d0d13
fixed calculation of connection header when explicit connection header
...
is passed
also, fixed the test which was relying on the previous one-time-to_s
behaviour of responnse bodies.
2021-08-01 00:38:40 +01:00
HoneyryderChuck
ba742847f7
fixing grpc dependency on body being closed when buffered
2021-07-24 04:00:19 +01:00
HoneyryderChuck
a1be10cbc6
defining finalizer on response body, which keeps the reference to the buffer, which will get closed on GC; this will ensure that file descriptors don't leak
2021-07-24 04:00:19 +01:00
HoneyryderChuck
e43d5eddcd
making body comparison less wasteful, while keeping existing poinnters after call to to_s
2021-07-24 04:00:19 +01:00
HoneyryderChuck
0f1d8cb271
make Response#to_s non-destructive, and keep the body around
...
for most cases, this didn't make sense, i.e. response bodies were so
small, and the user is fine with keeping it all in mem, whereas
clearing the string is more confusing. And it breaks pattern
matching when matching body multiple times.
2021-07-24 04:00:19 +01:00
HoneyryderChuck
74013fc2a7
patch 2.2 as well
2021-07-24 03:59:43 +01:00
HoneyryderChuck
db2c3e58fe
Merge branch 'issue-142' into 'master'
...
grpc plugin: build stub from service definition
Closes #142
See merge request honeyryderchuck/httpx!152
2021-07-24 02:43:31 +00:00
HoneyryderChuck
c4de4dd384
commented out the etimedout test
2021-07-24 03:33:15 +01:00
HoneyryderChuck
5deadec23e
fixing iptables deprecation
2021-07-22 14:52:19 +01:00
HoneyryderChuck
7aea7fe471
removing a few method_missing implementations
...
replacing them with SimpleDelegator where it made sense, and removing
them altogether whenever possible. ErrorResponse doesn't have a special
handling for Response methods anymore, but it's highly debatable if it
should.
2021-07-21 15:31:49 +01:00
HoneyryderChuck
15143f7322
went more meta with grpc and defining rpcs with def, optimal lookup up, removing method_missing logic
2021-07-21 15:31:18 +01:00
HoneyryderChuck
a9270a7616
do not require protobuf, as the user might use a different protobuf lib
2021-07-20 17:29:51 +01:00
HoneyryderChuck
e0a46dc7ec
making the grpc plugin build a rpc definitions from ma grpc generic service, thereby diminishing boilerplate
2021-07-20 17:29:03 +01:00
HoneyryderChuck
fa7b61a852
Merge branch 'issue-137' into 'master'
...
Cookie Jar management
Closes #137
See merge request honeyryderchuck/httpx!151
2021-07-16 09:10:47 +00:00
HoneyryderChuck
37f23ad8c3
cookie: force name to string; as for the value, only late-force it on writing the cookie
2021-07-16 09:52:21 +01:00
HoneyryderChuck
00a6e4672d
make sure that cookie jar on request is used, in case request has a distinct set of options
2021-07-16 09:52:21 +01:00
HoneyryderChuck
3ae18120d2
when users pass a Cookie header as option and plugin is enabled, the header will be parsed and managed by the jar
2021-07-16 09:52:21 +01:00
HoneyryderChuck
ac398ae0f0
bug (unexisting var)
2021-07-15 15:53:15 +01:00
HoneyryderChuck
174f5f9647
allow cookie jar to merge
2021-07-15 15:53:15 +01:00
HoneyryderChuck
1a7025941b
allow any option which can be merged, to be merged. This is a semi-breaking change, as some hash-like options will expanded instead of replaced, like the resolver options, but that was unspecified before, no guaarantees
2021-07-15 15:53:15 +01:00
HoneyryderChuck
fec85f29cd
added test for cookie jar management, exemplifying what the cookie plugin should be doing
2021-07-15 15:00:29 +01:00
HoneyryderChuck
f9f13abb81
removing internal with_cookies usage
2021-07-15 14:59:44 +01:00
HoneyryderChuck
2ea8b2ec2d
Merge branch 'issue-135' into 'master'
...
Options
Closes #135
See merge request honeyryderchuck/httpx!148
2021-07-14 17:31:11 +00:00
HoneyryderChuck
ac39eb8d36
bump version to 0.15.4
v0.15.4
2021-07-14 09:52:39 +01:00
HoneyryderChuck
514e6cafb3
do not call .marshal directly
2021-07-13 21:12:53 +01:00
HoneyryderChuck
fbe8a16b1c
small sig fixes
2021-07-13 20:04:38 +01:00
HoneyryderChuck
e9e3063dcc
fixing options class hierarchy, which caused truffleruby to fail
2021-07-13 19:56:59 +01:00
HoneyryderChuck
cab5a94d31
removing setters from Options, which weren't public API anyway
2021-07-13 19:56:59 +01:00
HoneyryderChuck
9d910df01b
fixing order of sub-plugins load in nnthe aws sigv4 plugin
2021-07-13 19:56:59 +01:00
HoneyryderChuck
5604501d01
using the new OptionsMethods way for defining internal plugin options
2021-07-13 19:56:59 +01:00
HoneyryderChuck
5c2ad6b588
allow definition of options via OptionsMethods module; using .extra_options for setting defaults
2021-07-13 19:56:59 +01:00
HoneyryderChuck
ec0f3cd163
defining options via normal method definition, def option_optname
2021-07-13 19:56:59 +01:00
HoneyryderChuck
bb9da90bfa
added regression test for bug fixed on 0.15.3
2021-07-11 17:09:13 +01:00
HoneyryderChuck
340fb6c7c6
Merge branch 'ojab-master-patch-08963' into 'master'
...
Don't count `nil` as an retryable error class
See merge request honeyryderchuck/httpx!147
2021-07-11 15:18:53 +00:00
ojab
246094d8fc
Remove uneeded if defined?(TLSError)
check
...
It's always defined
2021-07-11 15:05:21 +00:00
HoneyryderChuck
f7e211b29d
Merge branch 'silence_redefinition_warnings' into 'master'
...
Remove unused method definition, it's defined in the code below
See merge request honeyryderchuck/httpx!146
2021-07-09 16:31:19 +00:00
ojab
b5fe5bec11
Remove unused method definition, it's defined in the code below
2021-07-08 20:51:41 +00:00
HoneyryderChuck
ff46dee7e6
Merge branch 'thread-safe-plugin-load' into 'master'
...
Thread safe plugin load
See merge request honeyryderchuck/httpx!144
2021-07-07 18:36:07 +00:00
HoneyryderChuck
b6ee019014
several signature improvements while testing with steep
2021-07-07 19:21:36 +01:00
HoneyryderChuck
c9acb1d079
fixing chainable mod sigs
2021-07-07 12:45:55 +01:00
HoneyryderChuck
d59137e90d
fixing sort issue on truffleruby
2021-07-07 12:45:33 +01:00
HoneyryderChuck
88088267c6
making options frozen by default
2021-07-07 12:45:14 +01:00
HoneyryderChuck
fcdd492354
forcing body to enumm, to comply with chunker expectation
2021-07-07 12:45:14 +01:00
HoneyryderChuck
c9609c53d1
bumping jekyll
2021-07-07 12:45:14 +01:00
HoneyryderChuck
08fa918537
initializing error classes more conventionally
2021-07-07 12:45:14 +01:00
HoneyryderChuck
6275108b49
raising TypeError on wrong-type option attribution instead
2021-07-07 12:45:14 +01:00
HoneyryderChuck
b5ec7acd51
making get/set access to the plugins hash thread-safe
2021-07-07 12:45:14 +01:00