sách gpt4 ai đã đi

http - byte range 0- biểu diễn cái gì

In lại 作者:行者123 更新时间:2023-12-05 02:47:16 37 4
mua khóa gpt4 Nike

Tiêu đề “Range: bytes=0-” có nghĩa là gì? Đây có phải là toàn bộ tập tin không? Tôi đã thử gửi lại 0 byte nhưng không thành công, khi tôi gửi toàn bộ tệp thì hoạt động bình thường nhưng tôi nhận được yêu cầu này nhiều lần trong ngữ cảnh phát trực tuyến và có vẻ không ổn.

1 Câu trả lời

Is the entire file ?

是的,正是这样。

规范有 the grammar :

     byte-range-set = 1#( byte-range-spec / suffix-byte-range-spec )
byte-range-spec = first-byte-pos "-" [ last-byte-pos ]

还有注释:

If the last-byte-pos value isabsent, or if the value is greater than or equal to the currentlength of the representation data, the byte range is interpreted asthe remainder of the representation

另外:

A client can request the last N bytes of the selected representationusing a suffix-byte-range-spec.

     suffix-byte-range-spec = "-" suffix-length

因此,规范中的有效示例包括:

bytes=-500
bytes=9500-
bytes=0-0,-1

I receive this request more than once in a streaming context

header 表示此客户端理解范围请求,并会接受 206 Partial Content响应,而不是整个文件,以实现高效流式传输 ( What does the HTTP 206 Partial Content status message mean and how do I fully load resources? ).

关于http - 什么字节范围 0- 表示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65063701/

37 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com