aspdotnet_request_flow.md - brainchildservices/curriculum GitHub Wiki

SLIDE-1

Request Flow in Aspdotnet core application.

  • The following diagram shows the complete request processing pipeline for aspdotnet core applications.
  • You can see how, in a typical app, existing middlewares are ordered and where custom middlewares are added.
  • You have full control over how to reorder existing middlewares or inject new custom middlewares as necessary for your scenarios.

image

SLIDE-2

  • ExceptionHandler:

    • UseDeveloperExceptionPage is the middleware used here for Exceptions in Developer Mode. This middleware help a developer to find where the error with ease.
    • UseExceptionHandler is another middleware here, that will help us to prevent the users to see the Actual Reason for the Error in hosted Web app.
  • HSTS

    • UseHsts is the middleware used.
  • HttpsRedirection:

    • UseHttpsRedirection is the middleware used. Will Middleware help us Redirect all HTTP requests to HTTPS.

SLIDE-2(DOWNWARDS)

  • Static Files:

    • UseStaticFiles is the middleware used. Will help to access all static files needed for an aspdotnet core application.
  • Routing:

    • UseRouting is the middleware used here.
    • Routing is the system that matches URLs to Razor pages.
  • Endpoint

    • UseEndpoints is the middleware used.
    • Execute Endpoint, Adds endpoint execution to the middleware pipeline.