rewrite-2

결과 : Always display this page when path ends with an extension (e.g. .html or .aspx) and capture the their values.For example /hello-world.html or /welcome/everybody/inthis/train.aspx. Query String “path” = welcome/everybody/inthis/train Query String “ext” = .aspx

rewrite

결과 : Always display this page when path ends with / e.g. /hello-world/ or /welcome/everybody/inthis/train/.

middleware-10

결과 : Middleware is singleton. Keep refreshing the page. You will see that the date does not change 2019-09-25 오후 5:32:41.

middleware-9

결과: Good morning Goodbye

middleware-8

결과 : Good morning Dody, Hello world from Cairo

middleware-7

결과: MapWhenMiddleware| Path: /hello – Path Base:

middleware-5

 

결과 : Path: /world – Path Base: /hello

middleware-4

결과 : /hello path

middleware-3

결과 : Hello world

middleware-2

결과 : This sample uses buffering This allows all your Middlewares to write to Response.