HTTP Response before Request

后端 未结 7 1869
梦毁少年i
梦毁少年i 2020-12-23 17:16

My question might sound stupid, but I just wanted to be sure:

  • Is it possible to send an HTTP response before having the request for that resource?
7条回答
  •  醉酒成梦
    2020-12-23 17:54

    You're looking for server push: it isn't available in HTTP. Protocols like SPDY have it, but you're out of luck if you're restricted to HTTP.

提交回复
热议问题