Anh ơi, có nên thay thế HTTP1 thành các version HTTP2, HTTP3 để có nhiều tính năng hơn không
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hỏi có nên hay không thì tất nhiên là có rồi em, cái gì mới hơn, tốt hơn, tiện lợi hơn thì mình dùng thôi nhỉ.
Về cơ bản thì HTTP/2 nó sẽ không khác HTTP/1 là mấy, nó vẫn có đầy đủ các thành phần của một request response (header, payload, …) chỉ khác cái là HTTP/2 nó tổ chức 1 luồng request response thành các frame, mỗi frame này sẽ có ý nghĩa khác nhau, chính vì vậy mà nó có thể tận dụng để tách thành nhiều message trong 1 lần gửi nhận. Thế nên thay vì 1 request ứng với 1 response như ở HTTP/1 thì bây giờ 1 request có thể nhận được nhiều message trong 1 response. Nó sẽ rất tiện trong bài toán mà em cần nhận nhiều data 1 lúc để em có thể show màn hình loading cho phù hợp.
HTTP/3 thì anh chưa tìm hiểu.