From da607bb672b5dffdcdefecb6b686858c9f0cf1f1 Mon Sep 17 00:00:00 2001 From: Diana LaRose Date: Thu, 23 Feb 2017 10:43:08 -0800 Subject: [PATCH] Update middleware.md (#2824) Changed first line to test the process. --- aspnetcore/fundamentals/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/middleware.md b/aspnetcore/fundamentals/middleware.md index 52a66a2aa5..816952d15c 100644 --- a/aspnetcore/fundamentals/middleware.md +++ b/aspnetcore/fundamentals/middleware.md @@ -22,7 +22,7 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Steve Smith](http://ard ## What is middleware -Middleware are software components that are assembled into an application pipeline to handle requests and responses. Each component chooses whether to pass the request on to the next component in the pipeline, and can perform certain actions before and after the next component is invoked in the pipeline. Request delegates are used to build the request pipeline. The request delegates handle each HTTP request. +Middleware is software that is assembled into an application pipeline to handle requests and responses. Each component chooses whether to pass the request on to the next component in the pipeline, and can perform certain actions before and after the next component is invoked in the pipeline. Request delegates are used to build the request pipeline. The request delegates handle each HTTP request. Request delegates are configured using [Run](https://docs.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.builder.runextensions), [Map](https://docs.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.builder.mapextensions), and [Use](https://docs.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.builder.useextensions) extension methods on the [IApplicationBuilder](https://docs.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.builder.iapplicationbuilder) instance that is passed into the `Configure` method in the `Startup` class. An individual request delegate can be specified in-line as an anonymous method (called in-line middleware), or it can be defined in a reusable class. These reusable classes and in-line anonymous methods are *middleware*, or *middleware components*. Each middleware component in the request pipeline is responsible for invoking the next component in the pipeline, or short-circuiting the chain if appropriate.