TsgcWebSocketHTTPServerMethods › PushPromiseRemovePreLoadLinks

PushPromiseRemovePreLoadLinks Method

Removes the HTTP/2 Server Push rule previously registered for the given request path.

Syntax

public void PushPromiseRemovePreLoadLinks(string aPathMatch);

Parameters

NameTypeDescription
aPathMatchconst StringRequest path whose push-promise rule should be removed, using the same value originally passed to PushPromiseAddPreLoadLinks (for example /index.html).

Remarks

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.

Example


oServer.PushPromiseRemovePreLoadLinks("/index.html");

Back to Methods