@@ -14,7 +14,6 @@ use super::task::{hyper_executor, hyper_task, hyper_task_return_type, AsTaskType
1414/// An options builder to configure an HTTP client connection.
1515pub struct hyper_clientconn_options {
1616 http1_allow_obsolete_multiline_headers_in_responses : bool ,
17- http1_headers_raw : bool ,
1817 http1_preserve_header_case : bool ,
1918 http1_preserve_header_order : bool ,
2019 http2 : bool ,
@@ -72,7 +71,6 @@ ffi_fn! {
7271 conn:: http1:: Builder :: new( )
7372 . executor( options. exec. clone( ) )
7473 . http1_allow_obsolete_multiline_headers_in_responses( options. http1_allow_obsolete_multiline_headers_in_responses)
75- . http1_headers_raw( options. http1_headers_raw)
7674 . http1_preserve_header_case( options. http1_preserve_header_case)
7775 . http1_preserve_header_order( options. http1_preserve_header_order)
7876 . handshake:: <_, crate :: Recv >( io)
@@ -131,7 +129,6 @@ ffi_fn! {
131129 fn hyper_clientconn_options_new( ) -> * mut hyper_clientconn_options {
132130 Box :: into_raw( Box :: new( hyper_clientconn_options {
133131 http1_allow_obsolete_multiline_headers_in_responses: false ,
134- http1_headers_raw: false ,
135132 http1_preserve_header_case: false ,
136133 http1_preserve_header_order: false ,
137134 http2: false ,
@@ -203,20 +200,6 @@ ffi_fn! {
203200 }
204201}
205202
206- ffi_fn ! {
207- /// Set the whether to include a copy of the raw headers in responses
208- /// received on this connection.
209- ///
210- /// Pass `0` to disable, `1` to enable.
211- ///
212- /// If enabled, see `hyper_response_headers_raw()` for usage.
213- fn hyper_clientconn_options_headers_raw( opts: * mut hyper_clientconn_options, enabled: c_int) -> hyper_code {
214- let opts = non_null! { & mut * opts ?= hyper_code:: HYPERE_INVALID_ARG } ;
215- opts. http1_headers_raw = enabled != 0 ;
216- hyper_code:: HYPERE_OK
217- }
218- }
219-
220203ffi_fn ! {
221204 /// Set whether HTTP/1 connections will accept obsolete line folding for header values.
222205 /// Newline codepoints (\r and \n) will be transformed to spaces when parsing.
0 commit comments