HTTP 2 (Still working on it...)

Share
HTTP 2 (Still working on it...)
Photo by Kate Stone Matheson / Unsplash

I wrote this when I was in the airport when going to Anime Expo early this month... I need sleep... I know I won't finish this unless I post it somewhere
A lot of insert here hahaha
Listening to these songs:

Stages of HTTP 2 request and response

  1. Connection and Protocol checks
  2. Connection Configurations
  3. Stream initiation
  4. Request Header
  5. Data Transmission
  6. Resource Prioritization
  7. Server Response and Stream Termination
  8. Connection Shutdown

Connection and Protocol checks

HTTP 2 supports working without TLS, but since most major browsers want it to improve the default security of the protocol, the TLS handshake step is needed in order to use it.

Insert how the http 2 checks for TLS versions before actually working on the handshake

Client -> Sends ClientHello message, where it will attach ALPN extensions containing the list of protocols it supports on client's side

Server -> Validates the list of protocols that it gets from the client and goes down the priority list to see which one it supports, allowing it to use it to communicate with the client.

In this case let's assume that the ALPN that the client sends contains h2 (HTTP/2) and it is high on the priority list.

Given this, assume that the server also supports h2, it will reply back with ServerHello message that contains the ALPN extension confirming that the h2 extension has been selected.

Which it will move to the standard encrypted key exchange between the client and the server (Note to expand on this later)

The TLS version that HTTP/2 supports is TLS 1.2+

It will also need to send the 24 bytes prefix once this is finished, as this confirms with the server that we want to communicate in HTTP/2.

PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n

Connection Configurations

After the step of the TLS handshake and version determining is finished, it is actually the step to go into the actual HTTP/2 protocol handling.

The first thing that we will need to send from the Client's side will be the settings frame.

The settings frame will be the frame that tells the server what it expects from this communication.

Insert a frame of the HEADER FRAME

Insert a frame of the DATA FRAME

Stream initiation

Client initiating the request -> Odd number for stream identification number

Server initiating the request -> Even number for stream identification number

Each frame of request contains the stream identifier

Read more

蜡笔小新《大人帝国的反击》Nostalgia, and Why I Almost Built DeepSeek

蜡笔小新《大人帝国的反击》Nostalgia, and Why I Almost Built DeepSeek

Thanks for Chatgpt voice for fixing my awful chinese 碎碎念 grammar 所以这个是中文的博客,很久没写了,所以想要看一下怎么写。 大概有三四年没写了吧,有时候最近越来越少用中文了,感觉可以再加努力一下。 所以这是想说一下以前看的小动画片吧,这边有蜡笔小新:大人帝国的反击,然后下面连了一个视频,YouTube的视频(油管的视频),可以看一下,是比较详细的介绍吧,宣传一下。如果论知名度的话,看字幕的话大概知道它。 如果单说这部电影的话,我个人觉得它是我小时候看过最好的动画电影之一。《蜡笔小新》系列其实几乎每年都会出一部剧场版,但我大概从 2016 年左右开始就慢慢不看了,主要是因为太忙了,然后就是基本看不到 这次重新想起来,是因为最近又开始偶尔看看《蜡笔小新》,当作“下饭番”还挺轻松的。虽然不算特别认真地看,但还是会被一些情节触动。 那我对蜡笔小新《大人帝国的反击》具体的印象就是,大概大人全部走掉,然后小孩子的天堂吧。

By Tomato