HttpResponse.PushPromise HttpResponse.PushPromise HttpResponse.PushPromise HttpResponse.PushPromise Method

Definition

Promotes a promised object.

Overloads

PushPromise(String) PushPromise(String) PushPromise(String) PushPromise(String)

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.

PushPromise(String, String, NameValueCollection) PushPromise(String, String, NameValueCollection) PushPromise(String, String, NameValueCollection) PushPromise(String, String, NameValueCollection)

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.

PushPromise(String) PushPromise(String) PushPromise(String) PushPromise(String)

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.

public:
 void PushPromise(System::String ^ path);
public void PushPromise (string path);
member this.PushPromise : string -> unit
Public Sub PushPromise (path As String)
Parameters
path
String String String 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.

Remarks

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.

PushPromise(String, String, NameValueCollection) PushPromise(String, String, NameValueCollection) PushPromise(String, String, NameValueCollection) PushPromise(String, String, NameValueCollection)

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.

public:
 void PushPromise(System::String ^ path, System::String ^ method, System::Collections::Specialized::NameValueCollection ^ headers);
public void PushPromise (string path, string method, System.Collections.Specialized.NameValueCollection headers);
member this.PushPromise : string * string * System.Collections.Specialized.NameValueCollection -> unit
Public Sub PushPromise (path As String, method As String, headers As NameValueCollection)
Parameters
path
String String String 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.

method
String String String String

Http request method that would be used by the push request.

headers
NameValueCollection NameValueCollection NameValueCollection NameValueCollection

Http request header that would be used by the push request.

Remarks

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.

Applies to