We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
settings
1 parent 6c92a79 commit dd7f9feCopy full SHA for dd7f9fe
src/native/api.h
@@ -44,7 +44,12 @@ struct llhttp_settings_s {
44
llhttp_cb on_chunk_complete;
45
};
46
47
-/* Initialize the parser with specific type and user settings */
+/* Initialize the parser with specific type and user settings.
48
+ *
49
+ * NOTE: lifetime of `settings` has to be at least the same as the lifetime of
50
+ * the `parser` here. In practice, `settings` has to be either a static
51
+ * variable or be allocated with `malloc`, `new`, etc.
52
+ */
53
void llhttp_init(llhttp_t* parser, llhttp_type_t type,
54
const llhttp_settings_t* settings);
55
0 commit comments