Skip to content

Instantly share code, notes, and snippets.

View YukunSun's full-sized avatar
🌏

YukunSun

🌏
View GitHub Profile
@denji
denji / NGINX-HTTP-Request-Stages.md
Last active March 12, 2024 08:31
NGINX HTTP Request Stages

NGINX actual HTTP Request processing flow is divided into 11 stages.

The reason for this division is to perform logical subdivision request to the module as a processing unit, the various stages can contain any number of HTTP modules and pipelined manner request.

The advantage of this is to make the process more flexible, reducing the degree of coupling.

These 11 HTTP stages are as follows:

  1. NGX_HTTP_POST_READ_PHASE ― The phase of the read request;