SlideShare a Scribd company logo
HTTP/2
- A brief history about HTTP protocols

- The main benefits of HTTP/2

- Performance and example
HTTP/0.9 - The One-line Protocol (1991)
Invented by Tim Berners-Lee at CERN in the years 1989–1991

Initial version of HTTP — a simple client-server, request-response, telenet-
friendly protocol

Request nature: single-line (method + path for requested document)

Methods supported: GET only

Response type: hypertext only

Connection nature: terminated immediately after the response

No HTTP headers (cannot transfer other content type files), No status/
error codes, No URLs, No versioning
HTTP/2 - A brief introduction
HTTP/1.0  -  Building extensibility - (1996)
Browser-friendly protocol

Provided header fields including rich metadata about both request
and response (HTTP version number, status code, content type)

Response: not limited to hypertext (Content-Type header provided
ability to transmit files other than plain HTML files — e.g. scripts,
stylesheets, media)

Methods supported: GET , HEAD , POST

Connection nature: terminated immediately after the response
HTTP/1.1 -  The standardised protocol (1999)
This is the HTTP version currently in common use.

Introduced critical performance optimisations and feature
enhancements — persistent and pipelined connections, chunked
transfers, compression/decompression, content negotiations,
virtual hosting (a server with a single IP Address hosting multiple
domains), faster response and great bandwidth savings by adding
cache support.

Methods supported: GET , HEAD , POST , PUT , DELETE , TRACE
, OPTIONS

Connection nature: long-lived
HTTPS - RFC 2818 (May 2000)
Is the secure version of HTTP. It uses SSL/TLS for secure encrypted
communications.

Originally developed by Netscape in mid-1990s, SSL (Secure Socket Layer) is a
cryptographic protocol enhancement to HTTP, which defines how client and server
should communicate with each other securely. TLS (Transport Layer Security) is the
successor of SSL.

An HTTPS connection can protect the data transfer from the man-in-the-middle
attacks and common security threats by providing bidirectional encryption for
communications between a client and server.

SSL/TLS Handshake — major problem in HTTPS

Although HTTPS is secure by its design, the SSL/TLS handshake process
consumes a significant time before establishing an HTTPS connection. It normally
costs 1–2 seconds and drastically slows down the startup performance of a
website.
HTTP/2 - A brief introduction
HTTP/2 - (2015)
The HTTP/2 protocol has several prime differences from the HTTP/1.1
version:

It is a binary protocol rather than text. It can no longer be read and
created manually. Despite this hurdle, improved optimisation techniques
can now be implemented.

It is a multiplexed protocol. Parallel requests can be handled over the
same connection, removing the order and blocking constraints of the
HTTP/1.x protocol.

It compresses headers. As these are often similar among a set of
requests, this removes duplication and overhead of data transmitted.

It allows a server to populate data in a client cache, in advance of it
being required, through a mechanism called the server push.
The main benefits of HTTP/2
Single Connection. Only one connection to the server is used to load a
website, and that connection remains open as long as the website is open. 

Multiplexing. Multiple requests are allowed at the same time, on the same
connection. 

Server Push. Additional resources can be sent to a client for future use.

Prioritisation. Requests are assigned dependency levels that the server can
use to deliver higher priority resources faster.

Binary. Makes HTTP/2 easier for a server to parse, more compact and less
error-prone.

Header Compression. HTTP/2 uses HPACK compressions, which reduces
overhead.
HTTP/2 - A brief introduction
HTTP/2 - A brief introduction
HTTP/2 - A brief introduction
Performance and examples
https://blog.golang.org/h2push

https://http2.golang.org/

https://http2.golang.org/gophertiles

https://github.com/pdr0/http2-nodejs
@pselas
github.com/pdr0
me@pedroselas.com
https://github.com/pdr0/http2-nodejs

More Related Content

PPTX
File Transfer Protocol (FTP)
PPT
Web and http computer network
PPTX
HTTP & WWW
PPT
PPT
Http VS. Https
PPTX
Http Protocol
PPTX
The HTTP and Web
PPT
Homework
File Transfer Protocol (FTP)
Web and http computer network
HTTP & WWW
Http VS. Https
Http Protocol
The HTTP and Web
Homework

What's hot (20)

PDF
HTTP Definition and Basics.
PPTX
Http Vs Https .
PPSX
HTTP Presentation
PPTX
Http Introduction
PPTX
HyperText Transfer Protocol (HTTP)
PDF
HTTP & HTML & Web
PDF
Application layer and protocols of application layer
PPT
PPT
Application layer
PPTX
PPTX
Computer network
PPTX
HTTP and HTTPS Basics
PPT
Chapter3
PPT
COMPUTER NETWORKS UNIT 5
PPTX
protocols and types of protocols.
PPTX
Application layer protocols
PPTX
Hypertex transfer protocol
PPTX
PPT
Group20 Dynamic Networks
PPT
Network layer
HTTP Definition and Basics.
Http Vs Https .
HTTP Presentation
Http Introduction
HyperText Transfer Protocol (HTTP)
HTTP & HTML & Web
Application layer and protocols of application layer
Application layer
Computer network
HTTP and HTTPS Basics
Chapter3
COMPUTER NETWORKS UNIT 5
protocols and types of protocols.
Application layer protocols
Hypertex transfer protocol
Group20 Dynamic Networks
Network layer
Ad

Similar to HTTP/2 - A brief introduction (20)

PPTX
PPTX
HTTP/2 for Developers
PPTX
Evolution of HTTP - Miran Al Mehrab
PPTX
Web protocol.pptx
PDF
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
PPTX
HTTP/2 - Differences and Performance Improvements with HTTP
PDF
A New Internet? Introduction to HTTP/2, QUIC and DOH
PPTX
PDF
A new Internet? Intro to HTTP/2, QUIC, DoH and DNS over QUIC
PPTX
Introducing HTTP/2
PPTX
HTTP1.1/2 overview
PPTX
Introduction to HTTP/2
PPT
A detailed presentation on the World Wide Web
PPTX
HTML5, HTTP2, and You 1.1
PPTX
HTTP Presentation(What exactly is http).pptx
PPTX
Next generation web protocols
DOCX
Best Web Protocols Course in excellence technology
PDF
Hypertext transfer protocol performance analysis in traditional and software ...
PPT
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
HTTP/2 for Developers
Evolution of HTTP - Miran Al Mehrab
Web protocol.pptx
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
HTTP/2 - Differences and Performance Improvements with HTTP
A New Internet? Introduction to HTTP/2, QUIC and DOH
A new Internet? Intro to HTTP/2, QUIC, DoH and DNS over QUIC
Introducing HTTP/2
HTTP1.1/2 overview
Introduction to HTTP/2
A detailed presentation on the World Wide Web
HTML5, HTTP2, and You 1.1
HTTP Presentation(What exactly is http).pptx
Next generation web protocols
Best Web Protocols Course in excellence technology
Hypertext transfer protocol performance analysis in traditional and software ...
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
Ad

Recently uploaded (20)

PDF
Getting Started with Data Integration: FME Form 101
PPTX
1. Introduction to Computer Programming.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
project resource management chapter-09.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Mushroom cultivation and it's methods.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
A novel scalable deep ensemble learning framework for big data classification...
Getting Started with Data Integration: FME Form 101
1. Introduction to Computer Programming.pptx
cloud_computing_Infrastucture_as_cloud_p
project resource management chapter-09.pdf
Encapsulation theory and applications.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
A Presentation on Artificial Intelligence
A comparative analysis of optical character recognition models for extracting...
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Programs and apps: productivity, graphics, security and other tools
Assigned Numbers - 2025 - Bluetooth® Document
Mushroom cultivation and it's methods.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Enhancing emotion recognition model for a student engagement use case through...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
NewMind AI Weekly Chronicles - August'25-Week II
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A novel scalable deep ensemble learning framework for big data classification...

HTTP/2 - A brief introduction

  • 1. HTTP/2 - A brief history about HTTP protocols - The main benefits of HTTP/2 - Performance and example
  • 2. HTTP/0.9 - The One-line Protocol (1991) Invented by Tim Berners-Lee at CERN in the years 1989–1991 Initial version of HTTP — a simple client-server, request-response, telenet- friendly protocol Request nature: single-line (method + path for requested document) Methods supported: GET only Response type: hypertext only Connection nature: terminated immediately after the response No HTTP headers (cannot transfer other content type files), No status/ error codes, No URLs, No versioning
  • 4. HTTP/1.0  -  Building extensibility - (1996) Browser-friendly protocol Provided header fields including rich metadata about both request and response (HTTP version number, status code, content type) Response: not limited to hypertext (Content-Type header provided ability to transmit files other than plain HTML files — e.g. scripts, stylesheets, media) Methods supported: GET , HEAD , POST Connection nature: terminated immediately after the response
  • 5. HTTP/1.1 -  The standardised protocol (1999) This is the HTTP version currently in common use. Introduced critical performance optimisations and feature enhancements — persistent and pipelined connections, chunked transfers, compression/decompression, content negotiations, virtual hosting (a server with a single IP Address hosting multiple domains), faster response and great bandwidth savings by adding cache support. Methods supported: GET , HEAD , POST , PUT , DELETE , TRACE , OPTIONS Connection nature: long-lived
  • 6. HTTPS - RFC 2818 (May 2000) Is the secure version of HTTP. It uses SSL/TLS for secure encrypted communications. Originally developed by Netscape in mid-1990s, SSL (Secure Socket Layer) is a cryptographic protocol enhancement to HTTP, which defines how client and server should communicate with each other securely. TLS (Transport Layer Security) is the successor of SSL. An HTTPS connection can protect the data transfer from the man-in-the-middle attacks and common security threats by providing bidirectional encryption for communications between a client and server. SSL/TLS Handshake — major problem in HTTPS Although HTTPS is secure by its design, the SSL/TLS handshake process consumes a significant time before establishing an HTTPS connection. It normally costs 1–2 seconds and drastically slows down the startup performance of a website.
  • 8. HTTP/2 - (2015) The HTTP/2 protocol has several prime differences from the HTTP/1.1 version: It is a binary protocol rather than text. It can no longer be read and created manually. Despite this hurdle, improved optimisation techniques can now be implemented. It is a multiplexed protocol. Parallel requests can be handled over the same connection, removing the order and blocking constraints of the HTTP/1.x protocol. It compresses headers. As these are often similar among a set of requests, this removes duplication and overhead of data transmitted. It allows a server to populate data in a client cache, in advance of it being required, through a mechanism called the server push.
  • 9. The main benefits of HTTP/2 Single Connection. Only one connection to the server is used to load a website, and that connection remains open as long as the website is open. Multiplexing. Multiple requests are allowed at the same time, on the same connection. Server Push. Additional resources can be sent to a client for future use. Prioritisation. Requests are assigned dependency levels that the server can use to deliver higher priority resources faster. Binary. Makes HTTP/2 easier for a server to parse, more compact and less error-prone. Header Compression. HTTP/2 uses HPACK compressions, which reduces overhead.