Episode

.NET API Middleware for common functionality (Part 5 of 8) | Backend Web Development with .NET for Beginners

with Safia Abdalla

This video covers implementing common behavior for ASP.NET Core APIs using middlewares. Middlewares are a piece of code that can run before and after each request is processed. They run on all requests in a nested order. They're a super powerful way to execute common functionality on every request. ASP.NET Core comes with a collection of middlewares built-in. We can also write our own middlewares. In this video, Safia will do both.

Chapters

  • 00:00 - Intro
  • 02:32 - Use built-in middleware, URL Rewrite Middleware
  • 07:09 - Write custom middleware
  • 10:11 - Middleware ordering
  • 12:45 - Outro

Developer
.NET