اضافه شدن HTTP Logging توکار در NET 6.0.
200, OK
https://www.youtube.com/watch?v=3Oq0CE5RbZY icon

HTTP Logging is a middleware that logs information about HTTP requests and HTTP responses. HTTP logging provides logs of

HTTP request information
Common properties
Headers
Body
HTTP response information

HTTP Logging is valuable in several scenarios to

Record information about incoming requests and responses
Filter which parts of the request and response are logged
Filtering which headers to log

اضافه شدن HTTP Logging توکار در NET 6.0.
فقط یک HTTP Server ساده
200, OK
https://github.com/http-party/http-server icon

خیلی موقع‌ها نیاز میشه یه http server ساده لانچ کنیم. مثلا نیازه فایل‌های زیر رو

D:\Folder\file.zip
D:\Folder\file2.html
D:\Folder\folder\file-in-folder.jpg

از طریق http قابل درسترس کنیم مانند زیر

در اینجا با ابزار http-server به راحتی میشه این کارو کرد

ابتدا نصب

npm install http-server -g

و سپس اجرا

cd D:\Folder
http-server
-------------- OR -------------
http-server D:\Folder

نمونه دات نتی این ابزار

https://github.com/natemcmaster/dotnet-serve 

Simple command-line HTTPS server for the .NET Core CLI 

dotnet tool install --global dotnet-serve

و سپس اجرا

dotnet serve


فقط یک HTTP Server ساده