feat(ffi): add http1_allow_multiline_headers (#2918)
This commit is contained in:
@@ -402,6 +402,16 @@ enum hyper_code hyper_clientconn_options_http2(struct hyper_clientconn_options *
|
||||
enum hyper_code hyper_clientconn_options_headers_raw(struct hyper_clientconn_options *opts,
|
||||
int enabled);
|
||||
|
||||
/*
|
||||
Set whether HTTP/1 connections will accept obsolete line folding for header values.
|
||||
Newline codepoints (\r and \n) will be transformed to spaces when parsing.
|
||||
|
||||
Pass `0` to disable, `1` to enable.
|
||||
|
||||
*/
|
||||
enum hyper_code hyper_clientconn_options_http1_allow_multiline_headers(struct hyper_clientconn_options *opts,
|
||||
int enabled);
|
||||
|
||||
/*
|
||||
Frees a `hyper_error`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user