HoneyryderChuck
56b8e9647a
making multipart decoding code more robust
2025-04-04 00:18:53 +01:00
HoneyryderChuck
6d4266d4a4
multipart: initialize @bytesize in the initializer (for object shape opt)
2025-03-19 16:59:25 +00:00
HoneyryderChuck
5268f60021
fix sig issues coming from latest rbs
2025-03-18 18:30:53 +00:00
HoneyryderChuck
b26313d18e
request body: fixed handling of files as request body
...
there's a bug (reported in https://bugs.ruby-lang.org/issues/21131 ) with IO.copy_stream, where yielded duped strings still change value on subsequent yields, which breaks http2 framing, which requires two yields at the same time in the first iteration. it replaces it with #read calls; file handles will now be closed once done streaming, which is a change in behaviour
2025-02-14 00:16:53 +00:00
HoneyryderChuck
f573c1c50b
transcode: body encoder is now a simple delegator
...
instead of implementing method missing; this makes it simpler impl-wise, and it'll also make comparing types easier, although not needed ATM
2025-02-13 19:16:45 +00:00
HoneyryderChuck
36ddd84c85
improve code around consuming request bodies (particularly body_encoder interface)
2024-12-10 15:09:00 +00:00
HoneyryderChuck
853ebd5e36
improve coverage, eliminate dead code
2024-12-10 15:09:00 +00:00
HoneyryderChuck
bf9d847516
moved xml encoding/decoding + APIs into :xml plugin
2024-12-08 12:48:47 +00:00
Earlopain
a4b95db01c
Fix webmock integration when posting tempfiles
...
The fix is two-fold and also allows them to be retryable
Closes https://gitlab.com/os85/httpx/-/issues/320
2024-11-06 13:27:45 +00:00
HoneyryderChuck
3e504fb511
fix for webmock request body expecting a string
...
when building the request signature, the body is preemptively converted to a string, which fulfills the expectation for webmock, despite it being a bit of a perf penalty if the request contains a multipart request body, as the body will be fully read to memory
Closes #319
Closes https://github.com/HoneyryderChuck/httpx/issues/65
2024-10-31 17:47:12 +00:00
HoneyryderChuck
587271ff77
improving sigs
2024-06-11 18:21:22 +01:00
HoneyryderChuck
0d58408c58
compression plugins for gzip and deflate supported by default
...
most of the code was moved to the transcoder layer.
The `compression_threshold_size` option has been removed.
The `:compression/brotli` plugin becomes only ´:brotli`, and depends on
the new transcoding APIs.
options to skip compression and decompression were added.
2023-09-20 17:57:41 +01:00
HoneyryderChuck
3f73d2e3ce
multipart supported by default
...
the plugin was now moved to the transcoder layer, where it is available
from the get-go.
2023-09-20 17:57:41 +01:00
HoneyryderChuck
cfac38dc62
added more typing, improved correctness of a few checks
2023-04-28 23:57:25 +01:00
HoneyryderChuck
535a30db25
fixing issues around typing
2022-08-13 16:34:02 +01:00
HoneyryderChuck
25b949cf66
Added support for multiple JSON parsers
...
When available, httpx will either use `multi_json`, `oj`, or `yajl`,
before it falls back to default `json`.
2022-08-05 22:57:06 +01:00
HoneyryderChuck
6d33b5e59f
adding support for tempfile sigs, other improvements
2022-01-16 22:54:56 +02:00
HoneyryderChuck
8ded86cec6
improving sigs for new components
2021-08-10 11:10:45 +01:00
HoneyryderChuck
b6ee019014
several signature improvements while testing with steep
2021-07-07 19:21:36 +01:00
HoneyryderChuck
7fa283097d
added signatures to new modules
2021-01-13 12:27:13 +00:00
HoneyryderChuck
65f5e86f3f
allowing nested params also when posting multipart requests
2020-12-10 13:46:57 +00:00
HoneyryderChuck
0bb18ad500
added urlformencoder which encodes form data the way rack is used to, when nested
2020-12-10 01:07:18 +00:00
HoneyryderChuck
1e21c33da0
fixinng the signatures for the last rbs upstream
2020-11-24 00:42:54 +00:00
HoneyryderChuck
e02e8029ad
made encoder API more consistent across request body encoders
2020-10-30 16:19:18 +00:00
HoneyryderChuck
936a8533a7
initial signatures for typed ruby
2020-10-27 17:00:44 +00:00