THttpServerContext.RequiredItem<T> Method
Returns the item of type T stored in the context, raising an exception if it is missing.
Remarks
Behaves like Item but raises EInvalidOpException when the resolved value equals Default(T), that is, when no meaningful item is present.
Syntax
Unit: Sparkle.HttpServer.Context
function THttpServerContext.RequiredItem: T;
Type Parameters
| Type Parameter | Description |
|---|---|
| T | The type used as the key and as the type of the stored value. |