HTTP/2 or how to create a library

#1

If you are asking a question, please follow this template:

  1. My goal is: Has anyone tried ( and succeeded ) to get HTTP/2 working with something like nghttp2 or shlib?
  2. My actions are: Nothing as of yet, just curious
  3. The result I see is: [show the result - log, etc]
  4. My expectation & question is: Would like to be able to use HTTP/2 to get connected to AVS for smart home.

Has anyone tried HTTP/2 using nghttp2 or shlib? i would like to be able to build simple AVS devices which uses HTTP/2 with streaming to handle the communications back and forth.

It the case that this hasn’t been done, is there a tutorial or example of porting a C-only library to a mongoose library?

#2

I don’t know what AVS means nor what an AVS device is.
Mongoose-OS libraries are written in C, they are “C-only libraries”. They just happen to have some particularities due to the build process.
That link also has a tutorial on how to make a library work inside this framework; if what you are trying to port does not require linkable libraries or expects some particular OS resources you should be able to add it without much effort. Have you checked it ?