Does HTTP use UDP?

前端 未结 14 1402
夕颜
夕颜 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:49

    In theory yes it is possible to use UDP for http but that might be problematic. Say for instance in your example a mp3 or a video is being streamed there will be problem of ordering and some bits might go missing as UDP is not connection oriented there is no retransmit mechanism.

提交回复
热议问题