Class \Prado\Web\Behaviors\TRequestConnectionUpgrade
TRequestConnectionUpgrade class.
This is a behavior for THttpRequest that adds the "Connection: Upgrade"
header "Upgrade:
For example, a URL parameter could be used to select the PRADO "websocket" service. But this class allows selection of the "websocket" service from the injection of the "Upgrade" HTTP headers into the URL parameters without the need for specifying URL parameters.
<behavior name="httpUpgrader" Class="Prado\Web\Behaviors\TRequestConnectionUpgrade" AttachToClass="Prado\Web\THttpRequest" />
Class hierarchy
- \Prado\Web\Behaviors\TRequestConnectionUpgrade
- \Prado\Util\TBehavior implements IBehavior
- \Prado\Util\TBaseBehavior implements IBaseBehavior uses TPriorityPropertyTrait
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.3.0
public
|
|
public
|
processHeaders(THttpRequest $request, THttpRequestParameter $param) : mixed
Move the contents of the Upgrade header to the urlParams.
The Service can select on the "Upgrade" HTTP header like "websocket". |
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |