Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponse::PushPromise Method (String^)

.NET Framework (current version)
 

This API is to support applications sending push promises to HTTP 2.0 clients. You can find more details regarding to Http2 server push at HTTP/2 Specification Section 8.2: Server Push.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
void PushPromise(
	String^ path
)

Parameters

path
Type: System::String^

The URL of the push request. It should be the virtual path of the relative resource that the server wants to push to the client.

PushPromise is non-deterministic and applications shouldn't have logic that depends on it. Its only purpose is performance advantage in some cases. There are many conditions (protocol and implementation) that may cause to ignore the push requests completely. The expectation is based on fire-and-forget.

.NET Framework
Available since 4.6
Return to top
Show:
© 2017 Microsoft