TsgcWebSocketHTTPServer › Methods › PushPromiseRemovePreLoadLinks
Removes the HTTP/2 Server Push rule previously registered for the given request path.
public void PushPromiseRemovePreLoadLinks(string aPathMatch);
| Name | Type | Description |
|---|---|---|
aPathMatch | const String | Request path whose push-promise rule should be removed, using the same value originally passed to PushPromiseAddPreLoadLinks (for example /index.html). |
PushPromiseRemovePreLoadLinks locates the entry stored for aPathMatch in the internal push-promise table and deletes it, so subsequent HTTP/2 requests for that path are served without any PUSH_PROMISE frames. The lookup is an exact match against the value originally supplied to PushPromiseAddPreLoadLinks; calls for paths that were never registered (or have already been removed) are silently ignored. See HTTP/2 Server Push for a full overview of the push-promise workflow.
oServer.PushPromiseRemovePreLoadLinks("/index.html");