@@ -14,7 +14,6 @@ use super::task::{hyper_executor, hyper_task, hyper_task_return_type, AsTaskType
14
14
/// An options builder to configure an HTTP client connection.
15
15
pub struct hyper_clientconn_options {
16
16
http1_allow_obsolete_multiline_headers_in_responses : bool ,
17
- http1_headers_raw : bool ,
18
17
http1_preserve_header_case : bool ,
19
18
http1_preserve_header_order : bool ,
20
19
http2 : bool ,
@@ -72,7 +71,6 @@ ffi_fn! {
72
71
conn:: http1:: Builder :: new( )
73
72
. executor( options. exec. clone( ) )
74
73
. http1_allow_obsolete_multiline_headers_in_responses( options. http1_allow_obsolete_multiline_headers_in_responses)
75
- . http1_headers_raw( options. http1_headers_raw)
76
74
. http1_preserve_header_case( options. http1_preserve_header_case)
77
75
. http1_preserve_header_order( options. http1_preserve_header_order)
78
76
. handshake:: <_, crate :: Recv >( io)
@@ -131,7 +129,6 @@ ffi_fn! {
131
129
fn hyper_clientconn_options_new( ) -> * mut hyper_clientconn_options {
132
130
Box :: into_raw( Box :: new( hyper_clientconn_options {
133
131
http1_allow_obsolete_multiline_headers_in_responses: false ,
134
- http1_headers_raw: false ,
135
132
http1_preserve_header_case: false ,
136
133
http1_preserve_header_order: false ,
137
134
http2: false ,
@@ -203,20 +200,6 @@ ffi_fn! {
203
200
}
204
201
}
205
202
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
-
220
203
ffi_fn ! {
221
204
/// Set whether HTTP/1 connections will accept obsolete line folding for header values.
222
205
/// Newline codepoints (\r and \n) will be transformed to spaces when parsing.
0 commit comments