THttpServerContext.SetCurrent Method
Sets the context associated with the current thread, returned later by Current.
Remarks
The current context is stored per thread. Server implementations set it while a request is being processed so that code deep in the pipeline can reach the context without it being passed explicitly.
Syntax
Unit: Sparkle.HttpServer.Context
class procedure THttpServerContext.SetCurrent(const Value: THttpServerContext);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Value | THttpServerContext | The context to associate with the current thread, or nil to clear it. |