doc: fixed typo in serverless. (#440)

This commit is contained in:
WenMing 2019-08-26 13:28:08 +08:00 committed by GitHub
parent 1e7f66a428
commit 1f55335b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,13 @@
[中文](serverless-cn.md)
# serverless
There are two plug-ins for serverless, namely `serverless-pre-function` and `serverless-post-function'.
There are two plug-ins for serverless, namely `serverless-pre-function` and `serverless-post-function`.
The former runs at the beginning of the specified phase, while the latter runs at the end of the specified phase.
Both plug-ins receive the same parameters.
### Parameters
* `phase`: The default phase is `access`, if not specified. The valid phases are: `rewrite', `access`,`
`Header_filer`, `body_filter', `log` and `balancer'.
* `phase`: The default phase is `access`, if not specified. The valid phases are: `rewrite`, `access`,`Header_filer`, `body_filter`, `log` and `balancer`.
* `functions`: A list of functions that are specified to run is an array type, which can contain either one function or multiple functions, executed sequentially.