Mailing List Archive

Using Apache's C API for HTTP/2 and HTTP/3?
I have this server<https://github.com/DragonOsman/currency_converter> app I've made, with the backend code being in C++. I have an "unknown protocol" error that I get when running the openssl s_client? command to test the server certs and such, coming the ClientHello, which I think is because of an HTTP/2 upgrade request.

Is it possible for me to use Apache's API to support HTTP/2? Not using the httpd as a reverse proxy but instead directly using Apache's C/C++ functions that allow to use HTTP/2.
Re: Using Apache's C API for HTTP/2 and HTTP/3? [ In reply to ]
Not in any meaningful way.

Apache uses nghttp2 for the low level protocol support. The http2 code in
httpd connects nghttp2 to the rest of Apache.

You'd proxy or incorporate nghttp2 (or quiche for http/3) to implement it
in your app.

On Mon, Aug 1, 2022, 6:27 PM Osman Zakir <osmanzakir90@hotmail.com> wrote:

> I have this server <https://github.com/DragonOsman/currency_converter>
> app I've made, with the backend code being in C++. I have an "unknown
> protocol" error that I get when running the openssl s_client? command to
> test the server certs and such, coming the ClientHello, which I think is
> because of an HTTP/2 upgrade request.
>
> Is it possible for me to use Apache's API to support HTTP/2? Not using
> the httpd as a reverse proxy but instead directly using Apache's C/C++
> functions that allow to use HTTP/2.
>