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 binary sent across to client.
Second public void PushPromise(string path, string method, NameValueCollection headers)
that accepts sting method
and NameValueCollection headers
which I am failing to understand.
Why would I want to pass method (assuming HttpMethod like GET, POST, etc) and collection of headers inside PUSH PROMISE
header?