using Microsoft.AspNetCore.Http; public class TestController : Controller { public IActionResult Index() { // Get the current HTTP request object var request = HttpContext.Request; // Retrieve the attributes associated with the request var attributes = request.GetAttributes(); // Use the attributes to add or modify metadata associated with the request return View(); } }This example is taken from an ASP.NET Core web application, so the package library is likely to be `Microsoft.AspNetCore.Http`.