swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.34k stars 8.92k forks source link

How to use HTTP2 with the swagger editor request execution? #6868

Open pantinor opened 3 years ago

pantinor commented 3 years ago

How can we help?

Using the online swagger editor UI with a OPEN API spec. When trying to execute a GET or POST request it is using HTTP1. Is there a way the UI can try it with HTTP2 instead ? I want to avoid using curl and would like to use the GUI if possible to do it. Thanks.

mathis-m commented 3 years ago

@pantinor You can probably use the Plugin System to override the execute fn. Then use your custom code to execute the HTTP2 request.