# HTTP/3

如前所述，通過 QUIC 傳輸的第一個也是主要的協定是 HTTP。

就像曾經引入 HTTP/2 以全新的方式通過有線傳輸 HTTP 一樣，HTTP/3 是另一種通過網路傳輸 HTTP 的新方法。

HTTP 仍然保持與以前相同的範例和概念。 有標頭（ header ）和主體 ( body )，有請求 ( request ) 和響應 ( response )。 有動詞，Cookie 和緩存。 HTTP/3 的主要變化是如何將這些以位元傳送到通信的另一端。

為了在 QUIC 上進行 HTTP，協定需要進行更改，其結果就是我們現在所說的 HTTP/3。 由於 QUIC 提供的特性與 TCP 不同，因此需要進行這些更改。 這些更改包括：

* 在 QUIC 中，串流由傳輸器本身提供，而在 HTTP/2 中，串流在 HTTP 層內完成。
* 由於串流彼此獨立， HTTP/2 中使用的頭部壓縮算法如果不做改動，會造成隊頭阻塞。
* QUIC 串流與 HTTP/2 串流略有不同，本書的 HTTP/3 章節會做詳細介紹。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://http3-explained.haxx.se/zh-tw/h3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
