[wp-trac] [WordPress Trac] #61358: Add Support to HTTP 2 in WP_Http Class

WordPress Trac noreply at wordpress.org
Fri Jul 19 01:52:12 UTC 2024


#61358: Add Support to HTTP 2 in WP_Http Class
-------------------------+------------------------------
 Reporter:  isaumya      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  HTTP API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance
-------------------------+------------------------------

Comment (by peterwilsoncc):

 As WordPress server-side requests are typically for a single file (most
 likely a JSON API), it would be good to figure out if it's best to default
 to HTTP 1.1 or HTTP 2.

 My, possibly out of date, understanding is that there is an additional
 round trip made to the server for an HTTP 2 request. In browsers this is
 fine as multiplexing improves the response time for associated assets. If
 requesting a single file, HTTP 1.1 may be marginally quicker as there is
 no need for the upgrade round trip.

 I agree that supporting HTTP 2 is the class is a good idea though.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61358#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list