edit-icon download-icon

HTTP 2.0

Last Updated: Dec 01, 2017

API Gateway supports new features of HTTP 2.0, multiplexing, and request header compression.

  • MultiPlexing: Dependency on multiple connections during concurrent processing and sending of requests and responses in HTTP 1.x is eliminated. The client and server can divide an HTTP message into multiple frames independent of each other, send the frames in a random order, and then recombine them at another end, which avoids unnecessary latency and improves efficiency. In case of a large amount of requests, the client can use this method to transmit the request data with only a few connections.

Multiplexing

  • Header compression: As previously mentioned, the header in HTTP 1.X carries much information and must be resent each time. In HTTP 2.0, the client and server use the “header table” to trace and save the sent key-value pairs. Same data is not repeatedly sent in each request and response. The “header table” exists during the connection duration of HTTP 2.0 and is incrementally updated by both the client and the server. Each new header key-value pair is either added to the end of the current table or replaces a value in the table, so as to reduce the data volume of each request.

Header compression

How to enable HTTP 2.0

  • New API groups (created after July 14, 2017)

    All the HTTPS APIs support HTTP2 communication between the client and API Gateway. (HTTP 2.0 runs only in an HTTPS environment, and thus you must Enable HTTPS before using HTTP 2.0.)

  • Stock API groups

    The manual enabling function will be available in the future.

Thank you! We've received your feedback.