Does HTTP use UDP?

前端 未结 14 1397
夕颜
夕颜 2020-11-29 18:12

This might be a silly question:

  • Does HTTP ever use the User Datagram Protocol?

For example:

If one is

14条回答
  •  鱼传尺愫
    2020-11-29 18:47

    Typically, no.

    Streaming is seldom used over HTTP itself, and HTTP is seldom run over UDP. See, however, RTP.

    For something as your example (in the comment), you're not showing a protocol for the resource. If that protocol were to be HTTP, then I wouldn't call the access "streaming"; even if it in some sense of the word is since it's sending a (possibly large) resource serially over a network. Typically, the resource will be saved to local disk before being played back, so the network transfer is not what's usually meant by "streaming".

    As commenters have pointed out, though, it's certainly possible to really stream over HTTP, and that's done by some.

提交回复
热议问题