2012-03-13 16:32:52 +01:00
|
|
|
API Reference
|
|
|
|
=============
|
|
|
|
|
|
|
|
Includes
|
|
|
|
--------
|
|
|
|
|
2013-07-12 17:19:03 +02:00
|
|
|
To use the public APIs, include ``nghttp2/nghttp2.h``::
|
2012-03-13 16:32:52 +01:00
|
|
|
|
2013-07-12 17:19:03 +02:00
|
|
|
#include <nghttp2/nghttp2.h>
|
2012-12-22 17:24:56 +01:00
|
|
|
|
|
|
|
Remarks
|
|
|
|
-------
|
|
|
|
|
2013-07-12 17:19:03 +02:00
|
|
|
Do not call `nghttp2_session_send`, `nghttp2_session_recv` or
|
|
|
|
`nghttp2_session_mem_recv` from the nghttp2 callback functions
|
2012-12-22 17:24:56 +01:00
|
|
|
directly or indirectly. It will lead to the crash. You can submit
|
2013-07-12 17:19:03 +02:00
|
|
|
requests or frames in the callbacks then call `nghttp2_session_send`,
|
|
|
|
`nghttp2_session_recv` or `nghttp2_session_mem_recv` outside of the
|
2012-12-22 17:24:56 +01:00
|
|
|
callbacks.
|