Andrew Kelley 380916c0f8 std.http.Server.Request.Respond: support all transfer encodings
Before I mistakenly thought that missing content-length meant zero when
it actually means to stream until the connection is closed.

Now the respond() function accepts transfer_encoding which can be left
as default (use content.len for content-length), set to none which makes
it omit the content-length, or chunked, which makes it format the
response as a chunked transfer even though the server has the entire
contents already buffered.

The echo-content tests are moved from test/standalone/http.zig to the
standard library where they are actually run.
2024-02-23 02:37:11 -07:00
..
2024-02-14 19:26:12 -08:00
2024-02-23 02:37:11 -07:00
2024-02-23 02:37:11 -07:00
2024-02-23 02:37:11 -07:00
2024-02-22 18:20:05 -08:00
2024-02-19 10:12:17 +02:00
2023-11-22 13:24:27 -05:00
2024-02-23 02:37:11 -07:00
2023-11-22 19:08:55 -07:00
2023-10-23 22:42:18 -04:00
2024-02-12 05:25:07 +01:00
2024-02-01 15:22:36 +02:00
2024-02-05 11:55:14 +03:30
2024-02-21 20:01:45 +01:00
2023-10-25 04:28:30 -04:00
2024-02-09 14:02:57 -08:00
2024-01-24 12:48:12 +01:00
2024-01-14 20:45:39 -05:00
2023-11-03 23:18:21 -04:00
2024-02-23 02:37:11 -07:00
2024-02-01 15:22:36 +02:00
2024-02-07 12:41:40 +02:00
2024-02-08 15:39:28 +01:00
2024-02-23 01:16:44 -08:00
2024-02-05 11:55:14 +03:30
2023-10-21 21:24:55 +00:00