diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-16 21:02:05 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-02-23 02:37:11 -0700 |
| commit | 743a0c966de933e3d0a271f942c2db525df5dbe8 (patch) | |
| tree | 4b5e037f933ca37963a68f68b4dd05a517d8dbca /lib/std/array_list.zig | |
| parent | 0ddcb8341822cf9e3fd555c29a9e011b9a91d9fc (diff) | |
| download | zig-743a0c966de933e3d0a271f942c2db525df5dbe8.tar.gz zig-743a0c966de933e3d0a271f942c2db525df5dbe8.zip | |
std.http.Client: remove bad decisions from fetch()
* "storage" is a better name than "strategy".
* The most flexible memory-based storage API is appending to an
ArrayList.
* HTTP method should default to POST if there is a payload.
* Avoid storing unnecessary data in the FetchResult
* Avoid the need for a deinit() method in the FetchResult
The decisions that this logic made about how to handle files is beyond
repair:
- fail to use sendfile() on a plain connection
- redundant stat
- does not handle arbitrary streams
So, file-based response storage is no longer supported. Users should use
the lower-level open() API which allows avoiding these pitfalls.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions
