Questions tagged [push-promise]

PUSH_PROMISE is http/2 header that is used to add resources that are used on the page with initial request to reduce the amount of calls between server and client.

The PUSH_PROMISE frame (type=0x5) is used to notify the peer endpoint in advance of streams the sender intends to initiate. The PUSH_PROMISE frame includes the unsigned 31-bit identifier of the stream the endpoint plans to create along with a set of headers that provide additional context for the stream. more: https://http2.github.io/http2-spec/#PUSH_PROMISE

11 questions
5
votes
0 answers

Http2 PushPromise Access Denied Exception

HI I have the below piece of code for Enabling PushPromise for Http2.0 clients. public static IHtmlString StyleSheet(this HtmlHelper htmlHelper, string contentPath) { UrlHelper urlHelper = new UrlHelper(htmlHelper.ViewContext.RequestContext); …
CSharped
  • 1,247
  • 4
  • 20
  • 49
3
votes
1 answer

ASP.Net HTTP2 PushPromise is slow

I'm trying to implement the Http2 push server functionality using "PushPromise" .NET 4.6.1, for this I have a "html extension" with Razor (we did not implement MVC only used the Razor engine to build the pages). public static IHtmlString…
Jorgelig
  • 184
  • 2
  • 9
2
votes
1 answer

http2: PUSH_PROMISE client-side stream state

The http2 spec says: A receiver MUST treat the receipt of a PUSH_PROMISE on a stream that is neither "open" nor "half-closed (local)" as a connection error (Section 5.4.1) of type PROTOCOL_ERROR. However, an endpoint that has sent RST_STREAM…
lf215
  • 1,185
  • 7
  • 41
  • 83
2
votes
1 answer

Netty HTTP/2 writePushPromise makes browser to loop indefinitely

I'm trying to test HTTP/2 push promise with Netty, but doesn't seem to work. Use case is as simple as: Request home/index page Index page depends on a index.js file so I want to send a PUSH_PROMISE for index.js Write and flush content for index…
Edgar Espina
  • 507
  • 4
  • 10
1
vote
2 answers

HTTP/2 Push promise behavior

I am working on writing a resilient client for HTTP/2. I am wondering what should be the behavior of the client, if the server sent a PUSH_PROMISE and then failed to send the PUSH_RESPONSE, related to that PUSH_PROMISE ? I went through the HTTP/2…
ThisaruG
  • 3,222
  • 7
  • 38
  • 60
1
vote
2 answers

Does the Browser check conditional headers inside PUSH_PROMISE-frames?

I know that browsers can send RST_STREAM-frames to cancel serverpush. Does it make sense to send Last-Modified or Etag headers inside the PUSH_PROMISE? Or is the validation of the to-be-pushed resources only based on their URI (as Simone Bordet…
1
vote
0 answers

Sending Server Push with Continuation frame in Apache

I'm testing my HTTP/2 parser and currently I'm having trouble testing push promise with continuation. I'm using Apache as the HTTP/2 server. I managed to push a resource using either Location's Header add link or H2PushResource. But when I tried to…
EarthDragon
  • 755
  • 4
  • 14
1
vote
2 answers

.NET 4.6 HttpResponse.PushPromise methods to manage http/2 PUSH_PROMISE header

I am a bit confused about PUSH PROMISE http/2 header handling in .NET4.6. When I look HttpResponse.PushPromise there are two overloads: One that accepts path to resource public void PushPromise(string path) - am assuming resource is then read and…
Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265
0
votes
1 answer

After a PUSH PROMISE has been sent, what should the server send on error fetching the pushed asset?

When a HTTP2 server has been configured to push a CSS page along with a request for a certain HTML page, it will send a PUSH_PROMISE frame to let the client know the push is coming. If the CSS file is not found or cannot be read, etc. What should…
JPhi1618
  • 783
  • 1
  • 11
  • 21
0
votes
1 answer

Server Push with Nodejs pushStream method is not working

I am studying http2 on nodejs, but find out a issue pushStream method not working (client side do not show "Pushed/[fileName]" on developer tool) I wonder if the reason is nodejs version (I installed the latest version v9.8.0) My codes is the…
Nguyễn Văn Phong
  • 13,506
  • 17
  • 39
  • 56
0
votes
1 answer

An working example of HttpResponse.PushPromise() in MVC Applications

I've read about push-promise in HTTP/2 specs and several other tutorials, and have an idea as a concept. I've read here in SO why bundling won't be as relevant in upcoming days. So, if I have to incorporate push promise into applications, where is…
Manikandan Sigamani
  • 1,964
  • 1
  • 15
  • 28