| ... | @@ -1126,7 +1126,7 @@ pub const Request = struct { | ... | @@ -1126,7 +1126,7 @@ pub const Request = struct { |
| 1126 | /// `redirect_buffer` must outlive accesses to `Request.uri`. If this | 1126 | /// `redirect_buffer` must outlive accesses to `Request.uri`. If this |
| 1127 | /// buffer capacity would be exceeded, `error.HttpRedirectLocationOversize` | 1127 | /// buffer capacity would be exceeded, `error.HttpRedirectLocationOversize` |
| 1128 | /// is returned instead. This buffer may be empty if no redirects are to be | 1128 | /// is returned instead. This buffer may be empty if no redirects are to be |
| 1129 | /// handled. | 1129 | /// handled. RFC 9110 recommends making this at least 8000 bytes. |
| 1130 | /// | 1130 | /// |
| 1131 | /// If this fails with `error.ReadFailed` then the `Connection.getReadError` | 1131 | /// If this fails with `error.ReadFailed` then the `Connection.getReadError` |
| 1132 | /// method of `r.connection` can be used to get more detailed information. | 1132 | /// method of `r.connection` can be used to get more detailed information. |
| ... | @@ -1748,7 +1748,8 @@ pub fn request( | ... | @@ -1748,7 +1748,8 @@ pub fn request( |
| 1748 | } | 1748 | } |
| 1749 | | 1749 | |
| 1750 | pub const FetchOptions = struct { | 1750 | pub const FetchOptions = struct { |
| 1751 | /// `null` means it will be heap-allocated. | 1751 | /// `null` means it will be heap-allocated. RFC 9110 recommends at least |
| | 1752 | /// 8000 bytes. |
| 1752 | redirect_buffer: ?[]u8 = null, | 1753 | redirect_buffer: ?[]u8 = null, |
| 1753 | /// `null` means it will be heap-allocated. | 1754 | /// `null` means it will be heap-allocated. |
| 1754 | decompress_buffer: ?[]u8 = null, | 1755 | decompress_buffer: ?[]u8 = null, |