THttpServerContext.Item<T> Method
Returns the item of type T previously stored in the context, or the default value of T if no such item exists.
Remarks
If no eager item is found but a lazy item was registered for T through SetLazyItem, the factory is invoked, its result is cached as an eager item, and that value is returned.
Syntax
Unit: Sparkle.HttpServer.Context
function THttpServerContext.Item: T;
Type Parameters
| Type Parameter | Description |
|---|---|
| T | The type used as the key and as the type of the stored value. |