annotate README @ 0:a386f95c5ae9

Initial module skeleton. Mostly based on catch body filter. Does not work yet.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 17 Aug 2021 22:51:56 +0300
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
1 Delay body filter module for nginx.
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
2
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
3 This is a test module, to check request body filters buffering
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
4 mechanism to be introduced.
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
5
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
6 Example:
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
7
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
8 location / {
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
9 delay_body 1s;
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
10 }
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
11
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
12 The module will delay the request body processing for the configured time.
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
13
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
14 To compile nginx with the delay body module, use the "--add-module <path>"
a386f95c5ae9 Initial module skeleton.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff changeset
15 option of nginx configure.