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

Définition

Promeut un objet promis.Promotes a promised object.

Surcharges

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

Cette API permet de prendre en charge les applications qui envoient des promesses push aux clients HTTP 2.0.This API is to support applications sending push promises to HTTP 2.0 clients. Vous trouverez plus de détails concernant le mode Server Push Http2 dans HTTP/2 Specification Section 8.2 : Server Push.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)

Cette API permet de prendre en charge les applications qui envoient des promesses push aux clients HTTP 2.0.This API is to support applications sending push promises to HTTP 2.0 clients. Vous trouverez plus de détails concernant le mode Server Push Http2 dans HTTP/2 Specification Section 8.2 : Server Push.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)

Cette API permet de prendre en charge les applications qui envoient des promesses push aux clients HTTP 2.0.This API is to support applications sending push promises to HTTP 2.0 clients. Vous trouverez plus de détails concernant le mode Server Push Http2 dans HTTP/2 Specification Section 8.2 : Server Push.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)

Paramètres

path
String String String String

URL de la demande d’opération push.The URL of the push request. Cela doit être le chemin d’accès virtuel de la ressource relative que le serveur souhaite envoyer au client en mode Push.It should be the virtual path of the relative resource that the server wants to push to the client.

Remarques

PushPromise est non déterministe et applications ne doivent pas avoir une logique qui en dépend.PushPromise is non-deterministic and applications shouldn't have logic that depends on it. Son seul but est parti de performances dans certains cas.Its only purpose is performance advantage in some cases. Il existe de nombreuses conditions (protocole et l’implémentation) qui peuvent ignorer les demandes de notifications push complètement.There are many conditions (protocol and implementation) that may cause to ignore the push requests completely. L’attente est basé sur « fire-et-forget ».The expectation is based on fire-and-forget.

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

Cette API permet de prendre en charge les applications qui envoient des promesses push aux clients HTTP 2.0.This API is to support applications sending push promises to HTTP 2.0 clients. Vous trouverez plus de détails concernant le mode Server Push Http2 dans HTTP/2 Specification Section 8.2 : Server Push.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)

Paramètres

path
String String String String

URL de la demande d’opération push.The URL of the push request. Cela doit être le chemin d’accès virtuel de la ressource relative que le serveur souhaite envoyer au client en mode Push.It should be the virtual path of the relative resource that the server wants to push to the client.

method
String String String String

Méthode de demande HTTP utilisée par la demande d’opération push.Http request method that would be used by the push request.

headers
NameValueCollection NameValueCollection NameValueCollection NameValueCollection

En-tête de demande HTTP utilisé par la demande d’opération push.Http request header that would be used by the push request.

Remarques

PushPromise est non déterministe et applications ne doivent pas avoir une logique qui en dépend.PushPromise is non-deterministic and applications shouldn't have logic that depends on it. Son seul but est parti de performances dans certains cas.Its only purpose is performance advantage in some cases. Il existe de nombreuses conditions (protocole et l’implémentation) qui peuvent ignorer les demandes de notifications push complètement.There are many conditions (protocol and implementation) that may cause to ignore the push requests completely. L’attente est basé sur « fire-et-forget ».The expectation is based on fire-and-forget.

S’applique à