From e18408d4babee160559159e18c4a4442c5ce77d0 Mon Sep 17 00:00:00 2001 From: Bart Duisters Date: Sat, 8 Feb 2020 19:37:00 +0100 Subject: [PATCH] Grammar and punctuation of middlewares.md Signed-off-by: Bart Duisters --- docs/3.0.0-beta.x/concepts/middlewares.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/3.0.0-beta.x/concepts/middlewares.md b/docs/3.0.0-beta.x/concepts/middlewares.md index 47d38759e1..657e97ed41 100644 --- a/docs/3.0.0-beta.x/concepts/middlewares.md +++ b/docs/3.0.0-beta.x/concepts/middlewares.md @@ -88,9 +88,9 @@ The framework allows the application to override the default middlewares and add └─── api └─── config └─── middlewares -│ └─── responseTime // It will override the core default responseTime middleware +│ └─── responseTime // It will override the core default responseTime middleware. │ - index.js -│ └─── views // It will be added into the stack of middleware +│ └─── views // It will be added into the stack of middleware. │ - index.js └─── public - favicon.ico @@ -119,11 +119,11 @@ The middlewares are injected into the Koa stack asynchronously. Sometimes it hap } ``` -- `timeout`: defines the maximum allowed milliseconds to load a middleware. +- `timeout`: Defines the maximum allowed milliseconds to load a middleware. - `load`: - - `before`: array of middlewares that need to be loaded in the first place. The order of this array matters. - - `order`: array of middlewares that need to be loaded in a specific order. - - `after`: array of middlewares that need to be loaded at the end of the stack. The order of this array matters. + - `before`: Array of middlewares that need to be loaded in the first place. The order of this array matters. + - `order`: Array of middlewares that need to be loaded in a specific order. + - `after`: Array of middlewares that need to be loaded at the end of the stack. The order of this array matters. #### Examples @@ -216,10 +216,10 @@ Here is the loader order: 1. responseTime (loaded at the very first place) 2. logger 3. cors -4. favicon (position order not guarantee) +4. favicon (position order not guaranteed) 5. p3p -6. cron +6. cron (position order not guaranteed) 7. gzip (loaded after the p3p middlewares) -8. response (position order not guarantee) +8. response (position order not guaranteed) 9. parser -10. router (loaded at the very end place) +10. router (loaded at the very last place)