翻訳と辞書
Words near each other
・ Chupilca del diablo
・ Chuping
・ Chupinguaia
・ Chupkatha
・ Chupke Chupke
・ Chupke Chupke Raat Din
・ Chupke Se
・ Chunk of Change
・ Chunk! No, Captain Chunk!
・ Chunkappara
・ Chunkara (Arequipa)
・ Chunkara (disambiguation)
・ Chunkara (Puno)
・ Chunkarani
・ Chunkath Joseph Varkey
Chunked transfer encoding
・ Chunkey
・ Chunking
・ Chunking (computing)
・ Chunking (division)
・ Chunking (psychology)
・ Chunking (writing)
・ Chunklet
・ Chunklet (magazine)
・ Chunkou, Liuyang
・ Chunksaah Records
・ Chunkuiyeh
・ Chunky (song)
・ Chunky Creek Train Wreck of 1863
・ Chunky Monkey


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Chunked transfer encoding : ウィキペディア英語版
Chunked transfer encoding

Chunked transfer encoding is a data transfer mechanism in version 1.1 of the Hypertext Transfer Protocol (HTTP) in which data is sent in a series of "chunks". It uses the Transfer-Encoding HTTP header in place of the Content-Length header, which the earlier version of the protocol would otherwise require.〔http://tools.ietf.org/html/rfc1945#section-7.2〕 Because the Content-Length header is not used, the sender does not need to know the length of the content before it starts transmitting a response to the receiver. Senders can begin transmitting dynamically-generated content before knowing the total size of that content.
The size of each chunk is sent right before the chunk itself so that the receiver can tell when it has finished receiving data for that chunk. The data transfer is terminated by a final chunk of length zero.
An early form of the chunked encoding was proposed in 1994. Later it was standardized in HTTP 1.1.
==Rationale==
The introduction of chunked encoding provided various benefits:
* Chunked transfer encoding allows a server to maintain an HTTP persistent connection for dynamically generated content. In this case the HTTP Content-Length header cannot be used to delimit the content and the next HTTP request/response, as the content size is as yet unknown. Chunked encoding has the benefit that it is not necessary to generate the full content before writing the header, as it allows streaming of content as chunks and explicitly signaling the end of the content, making the connection available for the next HTTP request/response.
* Chunked encoding allows the sender to send additional header fields after the message body. This is important in cases where values of a field cannot be known until the content has been produced such as when the content of the message must be digitally signed. Without chunked encoding, the sender would have to buffer the content until it was complete in order to calculate a field value and send it before the content.
* HTTP servers often use compression (gzip or deflate methods) to optimize transmission. The interaction between chunked and gzip encoding is dictated by the two-staged encoding of HTTP: first the content stream is encoded as (Content-Encoding: gzip), after which the resulting byte stream is encoded for transfer using another encoder (Transfer-Encoding: chunked). This means that in case both compression and chunked encoding are enabled, the chunk encoding itself is not compressed, and the data in each chunk should not be compressed individually. The remote endpoint can decode the incoming stream by first decoding it with the Transfer-Encoding, followed by the specified Content-Encoding.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Chunked transfer encoding」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.