http2.d 741 B

12345678910111213141516171819202122232425
  1. c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: http2
  4. Tags: Versions
  5. Protocols: HTTP
  6. Added: 7.33.0
  7. Mutexed: http1.1 http1.0 http2-prior-knowledge http3
  8. Requires: HTTP/2
  9. Help: Use HTTP/2
  10. See-also: http1.1 http3 no-alpn
  11. Category: http
  12. Example: --http2 $URL
  13. Multi: mutex
  14. ---
  15. Tells curl to use HTTP version 2.
  16. For HTTPS, this means curl negotiates HTTP/2 in the TLS handshake. curl does
  17. this by default.
  18. For HTTP, this means curl attempts to upgrade the request to HTTP/2 using the
  19. Upgrade: request header.
  20. When curl uses HTTP/2 over HTTPS, it does not itself insist on TLS 1.2 or
  21. higher even though that is required by the specification. A user can add this
  22. version requirement with --tlsv1.2.