iOhYes 101: HTTP/2 101

iOhYes 101: HTTP/2 101

00:00

Discussion

HTTP/1.1 review

Widespread adoption in 1996 with full standard in 1997 RFC 2068 and later replaced with one in 1999 RFC 2616
Request (URL, method, headers, body) & Response (status code, headers, body)
Inherently async
Built for HyperText, makes it have problems

Head of line blocking

combining payloads to 1 response
multiple connections (Connection: Keep-Alive vs Close)
HTTP Pipelining

No cancellation, have to tear down connection
No prioritization, round robin over connections

iOS/Mac

NSURLRequest (NSHTTPURLRequest) and NSURLResponse (NSHTTPURLResponse)
NSURLConnection and NSURLSession

HTTP/2

Started by Google with SPDY (2012 - 2016), latest is SPDY/3.1
HTTP/2 is a binary protocol, where 1 and 1.1 are text
Previous episode on SPDY with M Schore
Reached standard in 2015 with RFC 7540 and adopted by Apple with iOS 9, Mac OS X 10.11
Resolves many issues with new features:

multiplexing (helps with head of line problem in HTTP/1.1)

cancellation
header

Comments

00:00