Puas yog http 2 siv?
Puas yog http 2 siv?

Video: Puas yog http 2 siv?

Video: Puas yog http 2 siv?
Video: Da Vang - Puas Yog Nyuab2 Koj (nkauj tawm tshiab 2021) 2024, Hlis ntuj nqeg
Anonim

HTTP / 2 yog tag nrho multiplexed.

Qhov no txhais tau tias HTTP / 2 tuaj yeem xa ntau qhov kev thov rau cov ntaub ntawv sib npaug ntawm ib qho kev sib txuas TCP. Qhov no yog qhov tshwj xeeb tshaj plaws ntawm cov HTTP / 2 raws tu qauv vim nws tso cai rau koj mus download tau cov ntaub ntawv web ntawm ASync hom los ntawm ib tug neeg rau zaub mov. Feem ntau cov browsers niaj hnub txwv TCP kev sib txuas rau ib lub server.

Tsis tas li ntawd, kuv tuaj yeem qhia tau li cas yog tias siv http 2?

Lwm txoj kev yog yooj yim rau saib ntawm lub network tab> headers> teb headers> saib qhov chaw hauv Chrome lossis Firefox. Muaj cov headers tuaj yeem pom. Nws yuav tsum nyeem " HTTP / 2 "los yog qee yam kuv nco tsis tau tam sim no. Yooj yim tshaj: Koj tuaj yeem siv curl -Kuv uas yuav muab cov HTTP teb raws li thawj kab.

Qhov thib ob, yog http 2 ruaj ntseg? HTTP / 2 Kev ruaj ntseg Txawm li cas los xij, nws yuav tsum tau sau tseg tias HTTP / 2 tuaj yeem pab txhim kho cov neeg siv browser ' kev ruaj ntseg tag nrho. Tshwj xeeb tshaj yog, HTTP / 2 yog txhais rau ob leeg HTTP URIs (piv txwv li tsis muaj encryption) thiab HTTPS URIs (dhau TLS encrypted channels).

Ib sab ntawm no, http 2 puas xav tau SSL?

Raws li tsab ntawv no los ntawm Mark Nottingham, tus thawj coj ntawm IETF HTTP Pab pawg ua haujlwm, " HTTP / 2 tsis yog xav tau koj siv TLS (tus qauv daim ntawv ntawm SSL , Web txheej txheej encryption), tab sis nws cov kev ua tau zoo dua ua rau kev siv encryption yooj yim dua, vim nws txo qhov cuam tshuam ntawm qhov nrawm npaum li cas koj lub xaib zoo li. " Txawm li cas los xij, txawm nrog qhov no

Qhov txawv ntawm HTTP thiab http2 yog dab tsi?

HTTP1. x siv cov lus txib los ua kom tiav HTTP thov. Yog tias koj xav pom ib qho ntawm cov kev thov no lawv yuav nyeem tau zoo (rau tus tswj hwm qhov system tsawg kawg). HTTP2 , ntawm qhov tod tes, siv binary commands (1s thiab 0s) kom tiav HTTP thov.

Pom zoo: